This project has moved and is read-only. For the latest updates, please go here.

Workbook.Worksheets.Count == 0

Apr 6, 2012 at 12:27 PM
Edited Apr 6, 2012 at 12:27 PM

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?


Apr 12, 2012 at 7:01 PM

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