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

Free Support Forum - aspose.com

LINQ reporting engine null pointer exception with column span

If I use the reporting engine in Java with a table that has a foreach that ends in a row that spans all columns, I get a java.lang.NullPointerException when trying to build the report. I feel like this should work. I can kind of work around the issue by adding a small second cell at the end of the row to end the foreach in but that isn’t ideal. I attached a simple Word document and Java code file that reproduces the issue.

report_engine_null_pointer_exception.zip (10.8 KB)

@smithb589

Thanks for your inquiry. We have tested the scenario and have managed to reproduce the same issue at our side. For the sake of correction, we have logged this problem in our issue tracking system as WORDSNET-17489. You will be notified via this forum thread once this issue is resolved.

We apologize for your inconvenience.

@smithb589

Thanks for your patience. It is to inform you that the issue which you are facing is actually not a bug in Aspose.Words. So, we have closed this issue (WORDSNET-17489) as ‘Not a Bug’.

Please use the attached modified document to avoid the shared exception. template modified.zip (8.9 KB)
Moreover, please read the following article.
Working with Table-Row Data Bands