yuhuihu / excellibrary

Automatically exported from code.google.com/p/excellibrary
0 stars 0 forks source link

Possible malformed Excel workbook created by Workbook.Save() #6

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
While I was writing test case for DataSetHelper, I noticed that
Workbook.Save() may create malformed Excel workbook under some special
circumstances. 

Workbook.Save() wrote to file without any warning. However, when open the
same file using Workbook.Open(), I get System.IO.EndOfStreamException. If I
try to open the file using Excel, I also get "Unable to read file." error.

I have created a test case to demo the issue, SimpleTest.WriteCellTest1(),
please have a look. 

Original issue reported on code.google.com by jetcat on 9 Feb 2009 at 2:16

GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
The bug results in wrong StreamPosition created for third Worksheet.

Original comment by China.LiuJunFeng on 12 Feb 2009 at 7:37

GoogleCodeExporter commented 9 years ago
Fixed by r19.

Original comment by China.LiuJunFeng on 12 Feb 2009 at 7:44