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

Free Support Forum - aspose.com

Issue with builder.insertChart


This is using Words 17.6 without experience with earlier versions (using charts).

I am setting up working with charts but immediately after this:

Shape shape = this.builder.insertChart( chart.getType(), chart.getWidth(), chart.getHeight() );

The application stops working, without throwing an exception or any message as far as I can see.

The 'chart' object is created by me and getType(), getWidth(), getHeight() have the correct data type (int, double, double).

What can it be that I am doing wrong or, in other words, how do I solve this?



Hi Marcel,

Thanks for your inquiry. We are unable to reproduce any issue when executing the following example with Aspose.Words for Java 17.6 on our end:

How to insert Column chart

Do you see the same problem with above example on your end?

Please create a standalone simple Java application (source code without compilation errors) that helps us reproduce your problem on our end and attach it here for testing. Also, please ZIP and attach any required Word documents here for testing. Thanks for your cooperation.

Best regards,

I found it.

I had the J5 and J6 version of the libraries in my libraries folder.

After removing the J5 version everything worked :slight_smile:

It is great you were able to resolve this issue on your end. Please let us know any time you have any further queries.

Best regards,