Hello. There is a crash NullPointerException when trying to generate two rows using “foreach” via template and second row contains Aspose tag.
Everything is ok when Aspose tag in second row gets replaced with some constant text.
Thanks a lot, that helped to avoid the crash. Unfortunately, it adds extra row at the bottom of the table (please see attached image). Our design requires borders around table cells so this extra row becomes visible. Is there a way to remove the extra row? Extra-row.jpg (5.7 KB)
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-18741. You will be notified via this forum thread once this issue is resolved.
The fix of this issue will be available in the next version of Aspose.Words i.e. 19.7. We suggest you please check the greedy switch from the following article. Working with Table-Row Data Bands
After the fix of this issue, you need to use greedy switch for closing tag of foreach in your template document as shown below.
Sets consent for sending user data to Google for online advertising purposes.
Sets consent for personalized advertising.
Cookie Notice
To provide you with the best experience, we use cookies for personalization, analytics, and ads. By using our site, you agree to our cookie policy.
More info
Enables storage, such as cookies, related to analytics.
Enables storage, such as cookies, related to advertising.
Sets consent for sending user data to Google for online advertising purposes.
Sets consent for personalized advertising.
Cookie Notice
To provide you with the best experience, we use cookies for personalization, analytics, and ads. By using our site, you agree to our cookie policy.
More info
Enables storage, such as cookies, related to analytics.
Enables storage, such as cookies, related to advertising.
Sets consent for sending user data to Google for online advertising purposes.