Workbook.Worksheets.Count == 0

Apr 6, 2012 at 11:27 AM
Edited Apr 6, 2012 at 11:27 AM

I have xlsx-files in this format:

and Workbook.Worksheets.Count == 0.

If I open the file in the office and resave it, it has the following format:

and Workbook.Worksheets.Count == 2, as it should be.

Is there a solution to this problem without resave file?

Thanks.

Coordinator
Apr 12, 2012 at 6:01 PM

No, I have never seen the first file structure. EPPlus assumes that the xl folder exists.

Jan