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.

Xlsx error when file has pictures

Thread ID:

Created:

Updated:

Platform:

Replies:

96152 Aug 24,2010 09:25 AM Aug 26,2010 03:10 AM ASP.NET Web Forms (Classic) 3
loading
Tags: XlsIO
Nate East
Asked On August 24, 2010 09:25 AM

We have recently had to change the format of our output reports to an xlsx file and in doing so, we receive an error from any of the files that get generated with a picture in them. The error states:
"Excel found unreadable content in the file xxx.xlsx. Do you want to recover the contents of the workbook?" When clicking yes, we receive another report stating that Excel was able to open the file by repairing or removing the unreadable content. The window also shows the following: "Repaired Records: Drawing from /xl/drawings/drawing1.xml part (Drawing shape)". We have set our default version to ExcelVersion.Excel2007 and are naming all our files with the .xlsx extenstion. Please help...

Poornima R [Syncfusion]
Replied On August 25, 2010 04:38 AM

Hi Nate,

Thank you for your interest in Syncfusion Products.

We are not able to reproduce the mentioned issue. We have prepared the sample for your requirement. Could you please find the sample from the below link. Try running the sample and let us know if this helps. If the issue still exists, could you please provide us with the sample you are trying to reproduce the issue. So that we can find the exact cause of the issue and provide you with clear details.

Sample link:
http://www.syncfusion.com/uploads/redirect.aspx?&team=support&file=Sample169060014.zip

Please let us know if you have any questions.

Regards,
Poornima

Nate East
Replied On August 25, 2010 11:02 AM

Thank you for providing the sample, it did work as you stated, but it is not exactly how we are adding images to our spreadsheets. We are not adding images from files, we are getting the image content from our database and creating images from that using the Image.FromStream() method. I've attached a modified version of your sample that produces the same error as we are seeing.



My Sample_121f97d6.zip

Poornima R [Syncfusion]
Replied On August 26, 2010 03:10 AM

Hi Nate,

Thank you for your update.

We are not able to reproduce the mentioned issue from the sample provided by you. We have tried your sample with 8.3.0.20, 8.2.0.18 and 7.4.0.20 versions of dll. Could you please find the generated document from the below link. Please view the document and let us know if this helps. If the issue exist, could you please provide us with the information about the Essential studio version and MS office version you are trying to reproduce this issue.

Generated document:
http://www.syncfusion.com/uploads/redirect.aspx?&team=support&file=Sample-1127866136.zip

Please let us know if you have any questions.

Regards,
Poornima

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.

;