ExecuteWithRegions support for page break

Hi,

I am trying to use Aspose Words (for .net) MailMerge ExecuteWithRegions in a Word document with multiple regions like this:

<<TableStart:X>>
  << X.property>>
    <<TableStart:Y>>
      <<Y.property>>
    <<TableEnd:Y>>
<<TableEnd:X>>

PageBreak;

<<TableStart:X>>
  << X.property>>
    <<TableStart:Z>>
      <<Z.property>>
    <<TableEnd:Z>>
<<TableEnd:X>>

But nothing gets merged after the page break.
Is this supported or how can I achieve a mailmerge like this?

@kevin.parret It looks like in your case you should simply set MailMerge.MergeDuplicateRegions to merge regions with the same name. By default only the first region is filled with data.

@alexey.noskov Works great, thanks!

1 Like