The Syncfusion native Blazor components library offers 70+ UI and Data Viz web controls that are responsive and lightweight for building modern web apps.
.NET PDF framework is a high-performance and comprehensive library used to create, read, merge, split, secure, edit, view, and review PDF files in C#/VB.NET.
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?
ADAdministrator Syncfusion Team March 22, 2004 02:59 AM UTC
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?
>
>
>
>
>
>
>