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.

Successive Workbook Opens

Thread ID:

Created:

Updated:

Platform:

Replies:

11113 Feb 23,2004 09:24 PM Mar 21,2004 09:59 PM Windows Forms 1
loading
Tags: XlsIO
Joseph Nash
Asked On February 23, 2004 09:24 PM

When attempting to open a second (same or different) workbook during an execution the following error is thrown: An unhandled exception of type ''System.ObjectDisposedException'' occurred in syncfusion.excelrw.dll Additional information: You can not use dipose object. code snippet is as follows: IWorkbook workBook = ExcelUtils.Open(fileName); /* Read data from worksheet into a grid */ workBook.Close(); ExcelUtils.Close(); What do I need to do to be able ditch the first workbook and get another?

Administrator [Syncfusion]
Replied On March 21, 2004 09:59 PM

Hi Joe, Thank you for your interest in syncfusion Essential ExcelRW. ExcelUtils.Close(); disposes all the unsaved objects so it will not be possible to access the workbook again. So, Please use this call only at the end when you want to dispose any unsaved objects. Please let me know if that doesnt help. Best regards, Stephen. >When attempting to open a second (same or different) workbook during an execution the following error is thrown: > >An unhandled exception of type ''System.ObjectDisposedException'' occurred in syncfusion.excelrw.dll > >Additional information: You can not use dipose object. > >code snippet is as follows: > >IWorkbook workBook = ExcelUtils.Open(fileName); >/* Read data from worksheet into a grid */ >workBook.Close(); >ExcelUtils.Close(); > >What do I need to do to be able ditch the first workbook and get another? > > > > > > >

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.

;