We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy.
Unfortunately, activation email could not send to your email. Please try again.

Exception while Exporting Image cell to excel

Thread ID:

Created:

Updated:

Platform:

Replies:

98721 Mar 22,2011 12:49 PM Mar 25,2011 04:40 AM Windows Forms 1
loading
Tags: GridControl
Qingde Shi
Asked On March 22, 2011 12:49 PM

Hi,

I am using GridControl 8.203, and trying to export a grid with Image cell type to excel, and got an exception as below. Any way to resolve this?

Thanks in advance.

Q

-----------------------------------------------------------

System.Runtime.InteropServices.ExternalException: A generic error occurred in GDI+.
at System.Drawing.Image.Save(Stream stream, ImageCodecInfo encoder, EncoderParameters encoderParams)
at System.Drawing.Image.Save(Stream stream, ImageFormat format)
at Syncfusion.XlsIO.Parser.Biff_Records.MsoDrawing.MsoBitmapPicture.EvaluateHash()
at Syncfusion.XlsIO.Parser.Biff_Records.MsoDrawing.MsoBitmapPicture.set_Picture(Image value)
at Syncfusion.XlsIO.Implementation.WorkbookShapeDataImpl.AddPicture(Image image, ExcelImageFormat imageFormat, String strPictureName)
at Syncfusion.XlsIO.Implementation.Collections.ShapesCollection.AddPicture(Image image, String pictureName, ExcelImageFormat imageFormat)
at Syncfusion.XlsIO.Implementation.Collections.PicturesCollection.AddPicture(Image image, String pictureName, ExcelImageFormat imageFormat)
at Syncfusion.XlsIO.Implementation.Collections.PicturesCollection.AddPicture(Int32 topRow, Int32 leftColumn, Image image, ExcelImageFormat imageFormat)
at Syncfusion.XlsIO.Implementation.Collections.PicturesCollection.AddPicture(Int32 topRow, Int32 leftColumn, Image image)
at Syncfusion.GridExcelConverter.GridExcelConverterControl.GridCellToExcel(GridModel grid, Int32 iRow, Int32 iColumn, IRange range)
at Syncfusion.GridExcelConverter.GridExcelConverterControl.GridToExcel(GridModel grid, IWorksheet sheet, ConverterOptions options)


Jisha Joy [Syncfusion]
Replied On March 25, 2011 04:40 AM

Hi Qingde,

We are unable to see any issue. Can you please provide us a sample showing the issue?.

Regards,
Jisha


CONFIRMATION

This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.

;