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 3.3.0.0 we need to explicitly handle this error and make the user to close the
file. However in the latest version 4.2.0.37 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.