|104099||Jun 21,2012 09:52 AM UTC||Jun 22,2012 05:06 AM UTC||ASP.NET Web Forms (Classic)||1|
Thank you for your interest in Syncfusion products.
We are not able to reproduce the reported exception at our side. We have created test sample and placed in the following link for your reference. Could you please update us with your input template and modified test sample, which will helps us to further investigate on this.
Sample : ZipException.zip
The reported exception may occur due to stream end position. Please try the below code.
Code snippet [C#]:
using (Stream fileStream = file.InputStream)
ExcelEngine engine = new ExcelEngine();
// set the stream position to zero
fileStream.Position = 0;
var wb = engine.Excel.Workbooks.Open(fileStream, ExcelOpenType.Automatic, ExcelParseOptions.Default);
var count = wb.ActiveSheet.Rows.Count();
Please let us know if you need any clarifications.
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.