Saving xls as pdf throws exception

Hi,
I am trying to save the attached xls doc to pdf and it throws an exception.

com.aspose.cells.CellsException
at com.aspose.cells.zV.a(Unknown Source)
at com.aspose.cells.Workbook.a(Unknown Source)
at com.aspose.cells.Workbook.save(Unknown Source)
at com.aspose.cells.Workbook.save(Unknown Source)
at DocToPdf.invokeExcelPlugin(DocToPdf.java:114)

Thanks & Regards,
Vimal

Hi,

Thanks for your posting and using Aspose.Cells for Java.

I was able to replicate this exception using the latest version:
Aspose.Cells
for Java v7.3.0.4

using the following code with your source file.

We have logged this issue in our database. We will look into it and fix the 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 CELLSJAVA-40286.

Below is the exception and sample test code for your reference.

Exception:
Exception in thread “main” com.aspose.cells.CellsException
at com.aspose.cells.zV.a(Unknown Source)
at com.aspose.cells.Workbook.a(Unknown Source)
at com.aspose.cells.Workbook.save(Unknown Source)
at com.aspose.cells.Workbook.save(Unknown Source)
at ClsAsposeTest.f1(ClsAsposeTest.java:45)
at ClsAsposeTest.main(ClsAsposeTest.java:25)


Java


String path = “F:\Shak-Data-RW\Downloads\AFP02205%2bLN%2b713846.xls”;


Workbook workbook = new Workbook(path);

workbook.save(path + “.out.pdf”, SaveFormat.PDF);


anita.michel:
Hello, I see Issues: CELLSJAVA-40286(Resolved) in the margin. Does this mean a fix is available? Thanks, Anita
Hi,

Thanks for your question.

Yes, this issue has been resolved, however the fixed version is not yet released. We will release it after some additional testing and it might take few days (1~3).

Once the fix is released, we will update you by posting at this thread.

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


This message was posted using Notification2Forum from Downloads module by aspose.notifier.