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?
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; }
thanks Mike.
I did figure that one out and included it.
Now this leads me down the path of WHY I can't export an image to excel.
I also am having the same problem with the ultraprintpreview control, IT also blows up when I click on a print button.
Private
UltraButton1.Click
Try
.UltraPrintPreviewDialog1.ShowDialog() <---- errors out here...
Exception
Publish(ex)
Sub
Oddly enough it doens't blow up when i use the same software with the 8.2 controlset..