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

Free Support Forum - aspose.com

Exception while trying to open xls file in order to convert to pdf

Hi

i am using cells dll 8.0.0.0 for 3.5 .net framework and while i’m trying to open the file i get the following exception:

“An unhandled exception of type ‘System.ArgumentOutOfRangeException’ occurred in mscorlib.dll

Additional information: Index was out of range. Must be non-negative and less than the size of the collection.“

this is an example code:
Aspose.Cells.Workbook ExcelConvertor = new Aspose.Cells.Workbook(” c:\a.xls”);
ExcelConvertor.Save(“c:\csv.pdf”, Aspose.Cells.SaveFormat.Pdf);

i’m attaching the file.

thanks.

Hi,

Thanks for your posting and using Aspose.Cells.

We were able to observe this exception using the following code with the latest version: Aspose.Cells for .NET (Latest Version) .

We have logged this issue in our database for investigation. We will look into it and fix this issue. Once, the issue is resolved or we have some other update for you, we will let you know asap.

This issue has been logged as CELLSNET-42534.

C#


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


Workbook workbook = new Workbook(filePath);

Exception:
An unhandled exception of type 'System.ArgumentOutOfRangeException' occurred in AsposeProject.exe

Additional information: Index was out of range. Must be non-negative and less than the size of the collection.

The issues you have found earlier (filed as CELLSNET-42534) have been fixed in this update.


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