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

Free Support Forum - aspose.com

Exception thrown on certain XLSX documents when saving as PDF

I receive the exception:

Invalid row index
when I call
var TempDocument = new Aspose.Cells.Workbook(pExcelPath);
TempDocument.Save(pPDFPath, Aspose.Cells.SaveFormat.Pdf);
on the attached XLSX document. Most Excel documents work fine … but this one is giving the Aspose engine trouble. The XLSX document is very simple.

Aspose Cells version: 7.3.3.3

How do I prevent this exception?

thx

Hi Jay,

Thanks for your posting and using Aspose.Cells.

Please download and use the latest version: Aspose.Cells for .NET (Latest Version) it works fine.

We have converted your file into pdf with the latest version using the following code and it did not throw any exception. I have attached the output pdf for your reference.

C#


string filePath = @“F:\Shak-Data-RW\Downloads\convert_pdf.XLSX”;


Workbook workbook = new Workbook(filePath);

workbook.Save(filePath + “.out.pdf”);