My LINQ Reporting Engine Template contains single-column table with multiple-rows items. In this case BuildReport throws NullReferenceException. I have attached SingleColumnTemplateWithError.docx.
Thanks for your reply. Yes, this really helps me.
Please also check the following articles:
I found this thread as I was having the same problem. Unfortunately, I have not found the issue to be resolved since the 18.1 update. I’m currently on version 18.5. The workaround by @tahir.manzoor has worked succesfully for me, but I thought I’d let you know anyway.
I have included a test project, which includes a test input document, my expected output (without the workaround), an input document with the workaround, and the succesful output with the workaround.AsposeTest.zip (352.2 KB)
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-16839. You will be notified via this forum thread once this issue is resolved.
We apologize for your inconvenience.
We have closed WORDSNET-16839 as “Not a bug”. We introduced the greedy switch in Aspose.Words 18.1 to avoid this exception. Please use <</foreach -greedy>> in your template document to avoid this exception. For more detail, please refer to the following article.
Working with Table-Row Data Bands
Thank you @tahir.manzoor ! This worked wonderfully.
Please feel free to ask if you have any question about Aspose.Words, we will be happy to help you.