Hi,
I recived following exception when using chart.toImage
Exception:
Exception in thread “main” java.lang.ArrayIndexOutOfBoundsException: 0
at sun.font.ExtendedTextSourceLabel.createCharinfo(ExtendedTextSourceLabel.java:592)
at sun.font.ExtendedTextSourceLabel.getCharinfo(ExtendedTextSourceLabel.java:492)
at sun.font.ExtendedTextSourceLabel.getLineBreakIndex(ExtendedTextSourceLabel.java:438)
at java.awt.font.TextMeasurer.calcLineBreak(TextMeasurer.java:308)
at java.awt.font.TextMeasurer.getLineBreakIndex(TextMeasurer.java:544)
at com.aspose.cells.b.a.b.d.a.c.n(Unknown Source)
at com.aspose.cells.b.a.b.d.a.c.k(Unknown Source)
at com.aspose.cells.b.a.b.i.a(Unknown Source)
at com.aspose.cells.b.a.b.i.a(Unknown Source)
at com.aspose.cells.baq.a(Unknown Source)
at com.aspose.cells.abd.b(Unknown Source)
at com.aspose.cells.abd.b(Unknown Source)
at com.aspose.cells.abd.a(Unknown Source)
at com.aspose.cells.eu.a(Unknown Source)
at com.aspose.cells.eu.b(Unknown Source)
at com.aspose.cells.gh.ao(Unknown Source)
at com.aspose.cells.ac.t(Unknown Source)
at com.aspose.cells.ac.p(Unknown Source)
at com.aspose.cells.gk.a(Unknown Source)
at com.aspose.cells.Chart.toImage(Unknown Source)
at com.quark.aspose.sample1.ChartToImage.execute(ChartToImage.java:45)
at com.quark.aspose.sample1.ChartToImage.main(ChartToImage.java:20)
I tried same on different system with same .xlsx file and with same project it runs fine. Both system using same OS, same java version. But the difference is one has uses office with failed activation. So is this is the reason of not getting the image file or is there any othere thing I have to check. Any help is appricaible.