I have a sample spreadsheet that does not seem to return the WorkSheets.count property.
Log(string.Format(“GetPageCount, file={0}”, this.SourcePath ));
if (!File.Exists(this.SourcePath)) throw new FileNotFoundException(“Cannot find source file”);
Workbook xlsDoc = new Workbook(this.SourcePath);
_Renderers = new List();
int pageCount = 0;
Log(string.Format(“GetPageCount, worksheets={0}”, xlsDoc.Worksheets.Count));
for (int i = 0; i < xlsDoc.Worksheets.Count; i++)
In the above, the path gets logged but the Worksheets.count never returns a value.
Aspose.Cells version 7.7.1.0
I believe it is related the sheet having an embedded image. If I remove the image, it returns a count of 3.