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. Image for the cookie policy date
close icon

Excel error

Hi,

Please find attached picture for excel error.
1) What is root cause of this problem?
2) How do we avoid this error?

Kindly help me on this.
Regards,
Anna


excelerror.zip

1 Reply

CP Chella Pandian B Syncfusion Team November 16, 2006 04:09 PM UTC

Hi Anna

By Setting the property excelEngine.ThrowNotSavedOnDestroy to false before saving the excel file we can avoid ExcelWorkbooknotSavedException.


ExcelEngine excelEngine = new ExcelEngine();

excelEngine.ThrowNotSavedOnDestroy=false;

workbook.SaveAs("Sample.xls",ExcelSaveType.SaveAsXLS);

Let me know any other queries.

With Regards,
Chella.

Loader.
Live Chat Icon For mobile
Up arrow icon