We're sorry Aspose doesn't work properply without JavaScript enabled.

Free Support Forum - aspose.com

Excel to PDF Index out of Array exception while hidden sheets


Tried to convert excel to PDF, since i have hide one of the sheets in the workbook ,as i tried to convert it , exception thrown that index out of array ,also upload the sample.

using (var wb = new Workbook(inputFilePath))
foreach (Worksheet ws in wb.Worksheets)
ws.SetVisible(ws.IsVisible, false);
pdfSaveOptions.OnePagePerSheet = false;
wb.Save(pdfFile, pdfSaveOptions);

Thanks in advance.


Thanks for your posting and using Aspose.Cells.

We were able to observe this issue and logged it in our database for a fix.

This issue has been logged as

  • CELLSNET-45199 - Excel to PDF - Index out of Array exception


Thanks for using Aspose.Cells.

This is to inform you that we have fixed your issue CELLSNET-45199 now. We will soon provide the fix after performing QA and including other enhancements and fixes.

Thanks for using Aspose.Cells.

Please download and try the following latest fix

Aspose.Cells for .NET v17.02.8 (.NET 2.0) compiled in .NET Framework 2.0.
Aspose.Cells for .NET v17.02.8 (.NET 4.0) compiled in .NET Framework 4.0.

and let us know your feedback.

The issues you have found earlier (filed as CELLSNET-45199) have been fixed in Aspose.Cells for .NET 17.3.0.

This message was posted using Notification2Forum from Downloads module by Aspose Notifier.