JaBratsch / excellibrary

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

Fix for Workbook.Load(string file) #70

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1.Open a string file name with Workbook.Load(string file)
2.
3.

What is the expected output? What do you see instead?

What version of the product are you using? On what operating system?

Please provide any additional information below.

Updating the Workbook.Load to below fixes the issue

        public static Workbook Load(string file)
        {
            CompoundDocument doc = CompoundDocument.Load(file);
            if (doc == null) throw new Exception("Invalid Excel file");
            byte[] bookdata = doc.GetStreamData("Workbook");
            return WorkbookDecoder.Decode(new MemoryStream(bookdata));
        }

Original issue reported on code.google.com by paulgh...@msn.com on 28 Sep 2010 at 10:26

GoogleCodeExporter commented 8 years ago
Fixed by r53.

Original comment by China.LiuJunFeng on 14 Apr 2011 at 12:47