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

Free Support Forum - aspose.com

Mailmerge with Catalog Template

Hi,

I have to work with existing templates (Dotx) that i can't update.

When MainDocumentType is "Catalog" MailMerge.Execute still put 1 row per page.

I know there is special options with TableStart & TableEnd but i can't use it.

Is there any solution to work with standard templates and having same result like with Ms Word ?

Thanks.

Hi,


Thanks for your inquiry.

Please note that it is by design i.e. your whole MailMerger document template will be repeated for each data row in the data source in case you perform a simple Mail Merge operation using Execute method. However, you may be able to achieve what you’re looking for by using the following code snippet:

doc.MailMerge.Execute(GetDataTable());

foreach (Section sec in doc.Sections)

sec.PageSetup.SectionStart = SectionStart.Continuous;

...

...


If we can help you with anything else, please feel free to ask.

Best regards,