Hi, I trying to open an excel file using:
application.Workbooks.Open(),
but I'm getting the following exception:
System.Runtime.InteropServices.ExternalException was unhandled by user code
Message="Cannot open storage. File Name is: C:\\Documents and Settings\\Ivan.EP\\My Documents\\RemotePaymentKRTest\\VerifyFromBank.xls"
Source="Syncfusion.XlsIO.Base"
ErrorCode=-2147286960
StackTrace:
at Syncfusion.XlsIO.IO.Stream.StgStream..ctor(String fileName, STGM flags)
at Syncfusion.XlsIO.Implementation.WorkbookImpl..ctor(IApplication application, Object parent, String strFileName, ExcelParseOptions options, Boolean bReadOnly, String password)
at Syncfusion.XlsIO.Implementation.WorkbookImpl..ctor(IApplication application, Object parent, String strFileName, ExcelParseOptions options)
at Syncfusion.XlsIO.Implementation.WorkbookImpl..ctor(IApplication application, Object parent, String FileName)
at Syncfusion.XlsIO.Implementation.ApplicationImpl.CreateWorkbook(Object parent, String strTemplateFile)
at Syncfusion.XlsIO.Implementation.Collections.WorkbooksCollection.Open(String Filename)
at Com.MarketVision.RemotePayment.KRPlugin.Plugin.impForm_Closing(Object sender, CancelEventArgs e) in C:\Documents and Settings\Ivan.EP\My Documents\C#\Com.MarketVision\Com.MarketVision.RemotePayment.KRPlugin\Plugin.cs:line 407
at System.Windows.Forms.Form.OnClosing(CancelEventArgs e)
at System.Windows.Forms.Form.CheckCloseDialog(Boolean closingOnly)
The file is attached.
Thank you
VerifyFromBank.zip