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.
Syncfusion Feedback

Cannot open a file URGENT!!!

Thread ID:

Created:

Updated:

Platform:

Replies:

56050 Feb 8,2007 07:17 PM UTC Feb 9,2007 07:00 AM UTC Windows Forms 1
loading
Tags: XlsIO
Administrator [Syncfusion]
Asked On February 8, 2007 07:17 PM UTC

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

Melba Winshia [Syncfusion]
Replied On February 9, 2007 07:00 AM UTC

Hi Ivan,

Thanks for your interest in Essential XlsIO.

The file that you have attached is a text (tab delimited) document but is renamed with an .xls extension. Please note that you need to specify the string separator value when opening such documents. Here is the sample for your reference:

Test_XLSIO.zip

Could you please specify correct delimiter when opening such excel files and let me know the problem still exists?

Thanks,
Melba

CONFIRMATION

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.

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

;