Aspose 20.11 merged cell interation issue


I have a simple table in template in Word, one row of 2 columns and one row of 1. I put <> in the upper left cell and <> in the bottom cell. All is well.

If I add text to that bottom cell, say 1234<>, it renders as expected.

If I put <<if [1==1]>>SPACER ROW<><>, I get “Object reference not set to an instance of an object.” In Aspose 20.08, this renders correctly.

Please advise. (21.4 KB)


Please use greedy switch in the foreach tag as shown below to avoid this exception.

<<if [1==1]>>SPACER ROW<</if>><</foreach -greedy>>

For more detail, we suggest you please read the following articles.
Working with Table-Row Data Bands
Using Conditional Blocks