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
3338
big problem with excel Export and bitmaps..
posted

With version 8.2 of the control set, if you exported a grid that had an image type in it, it would export to excel and in the image cell you would see the text.. System.Drawing.BitMap

which was fine.

 

after upgrading the controlset to 9.2  the same code now blows errors..

 

I have proven it is an issue with the 9.2 control set, i have submitted a support ticket.

 

what i am trying to do to get around it is:

on the CellExporting event, it the type of field is a bitmap, then I want to skip exporting it.

 

Can someone assist on what code i might use?

Parents
  • 469350
    Suggested Answer
    Offline posted

    Hi,

    First off... I just tested this out and it works fine for me. Not only does it now blow up, it actually exports the image, now. So maybe you just need to get the latest service release.

    How to get the latest service release - Infragistics Community

    Anyway, if that does not help for some reason, then your suggested workaround sound like a good one.And the code is really very simple.


            private void ultraGridExcelExporter1_CellExporting(object sender, Infragistics.Win.UltraWinGrid.ExcelExport.CellExportingEventArgs e)
            {
                if (e.GridColumn.DataType == typeof(Bitmap))
                    e.Cancel = true;
            }

Reply Children