Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
320
UltraWinGrid Printing
posted

I have a winGrid that is bound to a datatable. i style the winGrid using an isl file to have alternate coloured rows and later by editing the cell.Appearance.ImageBackground propertyof each cell in the grid to display a .png image file when the value of that cell is -1, 0 or +1. This all works fine and displays as expected. My problem arises when trying to print. The images are ignored and nothing is printed in tehir place not even the original numeric values. When exporting to excell the same occurs except the original numeric values are include this time.

Any help as to why this problem arises or how to fix this problem would be much appreciated.

 

steve

Parents
No Data
Reply
  • 469350
    Verified Answer
    Offline posted

    Hi Steve,

    In what event are you applying the images? The best event to do this in is the InitializeRow event of the grid.

    Also, when you call the Print method (or PrintPreview), make sure you pass in the optional flags parameter. This determines what properties are copied from the on-screen grid layout into the print layout.

    All of that is for printing. For the exporting, I'm afraid that images are not currently supported by the UltraGridExcelExporter. You might be able to handle this yourself in code. This thread might help you there:

    Export Image in Excel - Infragistics Community

Children