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.

Opening XLS File Already Opened by Excel

Thread ID:





51044 Oct 26,2006 09:43 AM Oct 26,2006 10:39 AM Windows Forms 1
Tags: XlsIO
Asked On October 26, 2006 09:43 AM

I am using Syncfusion How can I open an XLS file that is already opened by Excel (without having to mark the XLS file as 'Shared')? We are only interested in reading the contents of the file, so we want to be able to open the file read-only.

Melba Winshia [Syncfusion]
Replied On October 26, 2006 10:39 AM

Hi bvanderw,

Support for opening Excel Spreadsheet in read-only mode been added in the later versions. Would it be possible to upgrade to later versions. Use the following code snippets to open an XLS file that is already opened by Excel.


//Opening the file.
IWorkbook workbook = excelEngine.Excel.Workbooks.OpenReadOnly(@"..\..\Sample.xls");

Please take a look and let me know if you have any other questions.



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.