Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
2430
Get Error on Load Using Infragicstics.Documents.Excel.v12.2
posted

FileStream stream = File.OpenRead(sFileName);

Workbook book = Workbook.Load(stream);


Gives Error: Attemped to read past the end of the stream.

Get this with large .xls (old version of excel file) when trying to read.  If it is .xlsx which is Excel 2010 format don't get error.  The file I tried to use was only 3.9 MB in side.  It opens fine in Excel 2013 (I have Office 2013 installed).

 

Anything I need to do except convert over to xlsx format which works - I get the excel files from 3rd party and don't want to open and save every file for infragistics to work on the file.

 

If you need an example file, I can email it to you or something (I didn't know how to include the file in the forum post, although I figure you probably know about this error and how to fix in code hopefully).