Hi,
I currently encounter some problems while I'm trying to export attached file in PDF Format
The top chart make the application crash with following stacktrace, while the second and third items are not displayed.If I remove the first chart, the application doesn't crash but others chart aren't diplayed.
Here is my code :
try{
Workbook copy = new Workbook();
copy.open("Bugsheet.xls");
boolean isPdf = true;
if(isPdf)
copy.save("export.pdf", FileFormatType.PDF);
else
copy.save("export.xls", FileFormatType.EXCEL97TO2003);
}catch (IOException e) {
e.printStackTrace();
}
Stacktrace :
Exception in thread "main" java.lang.NegativeArraySizeException
at com.aspose.cells.a.a.b.o.b(Unknown Source)
at com.aspose.cells.a.a.i.e.a(Unknown Source)
at com.aspose.cells.a.a.i.b.a(Unknown Source)
at com.aspose.cells.a.a.b.o.a(Unknown Source)
at com.aspose.cells.a.a.b.b.a(Unknown Source)
at com.aspose.cells.a.a.b.n.a(Unknown Source)
at com.aspose.cells.a.a.b.b.a(Unknown Source)
at com.aspose.cells.a.a.b.f.a(Unknown Source)
at com.aspose.cells.a.a.b.b.a(Unknown Source)
at com.aspose.cells.a.a.b.s.a(Unknown Source)
at com.aspose.cells.a.a.b.b.a(Unknown Source)
at com.aspose.cells.a.a.b.s.a(Unknown Source)
at com.aspose.cells.a.a.b.b.a(Unknown Source)
at com.aspose.cells.a.a.b.s.a(Unknown Source)
at com.aspose.cells.a.a.b.b.a(Unknown Source)
at com.aspose.cells.a.a.b.s.a(Unknown Source)
at com.aspose.cells.a.a.b.b.a(Unknown Source)
at com.aspose.cells.a.a.b.s.a(Unknown Source)
at com.aspose.cells.a.a.b.b.a(Unknown Source)
at com.aspose.cells.a.a.b.s.a(Unknown Source)
at com.aspose.cells.a.a.b.b.a(Unknown Source)
at com.aspose.cells.a.a.b.s.a(Unknown Source)
at com.aspose.cells.a.a.b.b.a(Unknown Source)
at com.aspose.cells.a.a.b.s.a(Unknown Source)
at com.aspose.cells.a.a.b.b.a(Unknown Source)
at com.aspose.cells.a.a.b.s.a(Unknown Source)
at com.aspose.cells.a.a.b.b.a(Unknown Source)
at com.aspose.cells.a.a.b.s.a(Unknown Source)
at com.aspose.cells.a.a.b.b.a(Unknown Source)
at com.aspose.cells.a.a.b.s.a(Unknown Source)
at com.aspose.cells.a.a.b.b.a(Unknown Source)
at com.aspose.cells.a.a.b.s.a(Unknown Source)
at com.aspose.cells.a.a.b.p.a(Unknown Source)
at com.aspose.cells.a.a.b.b.a(Unknown Source)
at com.aspose.cells.a.a.b.s.a(Unknown Source)
at com.aspose.cells.a.a.b.b.a(Unknown Source)
at com.aspose.cells.a.a.b.s.a(Unknown Source)
at com.aspose.cells.a.a.b.b.a(Unknown Source)
at com.aspose.cells.a.a.b.g.a(Unknown Source)
at com.aspose.cells.a.a.j.w.a(Unknown Source)
at com.aspose.cells.a.a.i.b.a(Unknown Source)
at com.aspose.cells.a.a.j.k.a(Unknown Source)
at com.aspose.cells.iG.c(Unknown Source)
at com.aspose.cells.iG.b(Unknown Source)
at com.aspose.cells.Workbook.save(Unknown Source)
at TestExportPDF.main(TestExportPDF.java:14)
If I export to XLF format (isPdf =false) everything is Ok.
Using MS Excel 2002, Aspose.Cell 2.5.4, JDK 1.4
Kind regards, Guillaume