Hello,
I’m using the latest version of Aspose.Cells (22.8.0) to convert an Ods document into Pdf and I’m getting an error:
Aspose.Cells.CellsException: Index was out of range. Must be non-negative and less than the size of the collection. (Parameter 'index') at Aspose.Cells.Workbook.Save(Stream stream, SaveOptions saveOptions)
I used the following code:
var odsWorkbook = new Aspose.Cells.Workbook(inputStream);
var options = new Aspose.Cells.PdfSaveOptions()
{
AllColumnsInOnePagePerSheet = true
};
odsWorkbook.Save(resultStream, options);
OS: Windows 10 Enterprise 2016
C# .Net
Project target framework: .Net Standard 2.0
Could you please tell me what might be causing this issue?
Here is the ODS file I used:
Бюджет (смеш. ориентация).ods.zip (22.7 KB)
@directum,
Thanks for the sample ODS document.
Please notice, I am able to reproduce the issue as you mentioned by using your sample ODS file. I found an exception “Index was out of range. Must be non-negative and less than the size of the collection” when rendering the ODS file to PDF. I have logged a ticket with an id “CELLSNET-51961” for your issue. We will look into it soon.
Once we have an update on it, we will let you know.
1 Like
@directum,
This is to inform you that your issue has been resolved now. The fix will be included in our upcoming release (Aspose.Cells v22.9) scheduled before the end of this week. You will also be notified when the next version is released.
The issues you have found earlier (filed as CELLSNET-51961) have been fixed in this update. This message was posted using Bugs notification tool by johnson.shi