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 workbook.SaveAs(filename)

Thread ID:

Created:

Updated:

Platform:

Replies:

46279 Jul 10,2006 08:50 AM Jul 13,2006 08:47 PM Windows Forms 3
loading
Tags: XlsIO
Robert Chapman
Asked On July 10, 2006 08:50 AM

I am receiving an exception on workbook.SaveAs() if I delete part of named range on a report. This does not happen if I dont delete part of the range. Sample project attached. Point to the xlt included Point to the xml included for the data. Affectively the test app goes: Open template Open xml file into a dataset Drop the first table starting at the address of the first named range Delete any left over rows in the named range Drop the second data table in the address of the second name range workbook.SaveAs(fileName) Exception is - "System.ApplicationException: Error in the application.\r\n at Syncfusion.XlsIO.Implementation.Collections.WorkbookNamesCollection.GetNewIndexes(SortedListEx list)\r\n at Syncfusion.XlsIO.Implementation.Collections.WorkbookNamesCollection.Serialize(OffsetArrayList records)\r\n at Syncfusion.XlsIO.Implementation.WorkbookImpl.SerializeNames(OffsetArrayList records)\r\n at Syncfusion.XlsIO.Implementation.WorkbookImpl.Serialize(OffsetArrayList records, ExcelSaveType saveType)\r\n at Syncfusion.XlsIO.Implementation.WorkbookImpl.SaveAs(String FileName, ExcelSaveType saveType)\r\n at Syncfusion.XlsIO.Implementation.WorkbookImpl.SaveAs(String FileName)\r\n at Bif8Writer.Form1.cmdRangeViaRowCol_Click(Object sender, EventArgs e) in C:\\Working\\Internal\\Utilities\\Kelley\\SentToSyncfusion\\Form1.cs:line 542"

ExceptionOnSaveAs.zip

Robert Chapman
Replied On July 10, 2006 08:51 AM

version of syncfusion is 4.102.0.50 >I am receiving an exception on workbook.SaveAs() if I delete part of named range on a report. This does not happen if I dont delete part of the range. Sample project attached. >Point to the xlt included >Point to the xml included for the data. > >Affectively the test app goes: >Open template >Open xml file into a dataset >Drop the first table starting at the address of the first named range >Delete any left over rows in the named range >Drop the second data table in the address of the second name range >workbook.SaveAs(fileName) > >Exception is - >"System.ApplicationException: >Error in the application.\r\n at Syncfusion.XlsIO.Implementation.Collections.WorkbookNamesCollection.GetNewIndexes(SortedListEx list)\r\n at Syncfusion.XlsIO.Implementation.Collections.WorkbookNamesCollection.Serialize(OffsetArrayList records)\r\n at Syncfusion.XlsIO.Implementation.WorkbookImpl.SerializeNames(OffsetArrayList records)\r\n at Syncfusion.XlsIO.Implementation.WorkbookImpl.Serialize(OffsetArrayList records, ExcelSaveType saveType)\r\n at Syncfusion.XlsIO.Implementation.WorkbookImpl.SaveAs(String FileName, ExcelSaveType saveType)\r\n at Syncfusion.XlsIO.Implementation.WorkbookImpl.SaveAs(String FileName)\r\n at Bif8Writer.Form1.cmdRangeViaRowCol_Click(Object sender, EventArgs e) in C:\\Working\\Internal\\Utilities\\Kelley\\SentToSyncfusion\\Form1.cs:line 542" > > > >

ExceptionOnSaveAs.zip

Administrator [Syncfusion]
Replied On July 10, 2006 07:45 PM

Hi Rob, We are looking into this issue.I will update you regarding this issue as soon as possible. Thanks, Bharath.

Administrator [Syncfusion]
Replied On July 13, 2006 08:47 PM

Hi Rob, Sorry for the delay in getting back to you.Thanks for sending the project to show your problem.I have filed a bug report regarding this issue. Please track the status of this issue through the following link:http://www.syncfusion.com/support/issues/xlsio/Default.aspx?ToDo=view&questId=2388 Please let me know if you have any other queries. Regards, Bharath.

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.

;