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. (Last updated on: November 16, 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

error importing opened excel file

Thread ID:





45019 Jun 8,2006 02:19 PM UTC Jun 8,2006 04:14 PM UTC WinForms 1
Tags: XlsIO
Anthony Avella
Asked On June 8, 2006 02:19 PM UTC

I''m using Syncfusion version I''m trying to import an excel file into my app using the following line of code: IWorkbook theBook = ExcelUtils.Open(FileName); If the user has the spreadsheet open already, I see the following runtime error: An unhandled exception of type ''System.Runtime.InteropSrvices.ExternalException'' occurred in syncfusion.excelrw.base.dll Additional information: Can not open storage. File Name is: C:\PricingToolStuff\OptionTest3.xls Do I need to do something in particular to allow the user to open this file in the app. while the user has it open? Or is this an error I need to handle and make the user close the file?

Administrator [Syncfusion]
Replied On June 8, 2006 04:14 PM UTC

Hi, I am able to reproduce the problem. This is because we didn''t have support for read only mode of opening the excel template file in version we need to explicitly handle this error and make the user to close the file. However in the latest version this issue has been resolved with a new method OpenReadOnly(). Here is a code which opens a template file in ReadOnly mode: IWorkbook workbook = application.Workbooks.OpenReadOnly(@"../../Data/Template.xls"); and here is sample for your reference:Readonlymode.zip Here is the download link for the latest version. DownloadLink: http://www2.syncfusion.com/Installs/v4.2.0.37/SyncfusionEssentialStudioSetup.exe Note: This version requires a separate key to install. Please contact sales if you have not received a key. I hope this would resolve your problem. Please let me know if you any other concerns. Thanks, Bharath.


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.

Please sign in to access our forum

This page will automatically be redirected to the sign-in page in 10 seconds.

Warning Icon 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.Close Icon