Hi,
The following code with the attached XLSX file causes an “Index was outside the bounds of the array” exception in Aspose.Cells for .NET 21.4:
var loadOpts = new Aspose.Cells.LoadOptions
{
MemorySetting = Aspose.Cells.MemorySetting.MemoryPreference
};
var workbook = new Aspose.Cells.Workbook("input.xlsx", loadOpts);
foreach (var sheet in workbook.Worksheets)
{
sheet.PageSetup.PrintComments = Aspose.Cells.PrintCommentsType.PrintSheetEnd;
}
workbook.Save("output.pdf"); // hits exception
input.zip (731.8 KB)
Interestingly, the exception only occurs when the workbook is loaded with the MemoryPreference option.
Thanks