MailMerge VS Document Builder

I can generate a document using either mail merge or Document builder. Which approach should i take?
What are the advantages and disadvantages of both approach?

Document builder actually seems easy and effective but are there any disadvantages?

I am mainly creating tables in the document.

Regards,
Keadar

Hi Kedar,

Thanks for your inquiry.

We normally suggest you to use mail merge, the reason being is that you can design your template and tables in Microsoft Word before hand, insert some merge fields and then merge your data straight from your data source into the document.

If you did the same thing using DocumentBuilder you would need the code to generate these tables manually, then find the values from your data source manually before inserting them into the correct positions in the table. As you can see mail merge would be easier.

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

Thanks,

Could you please direct me to a sample for creating a table using mail merge.
The problem i am facing is that the header of the table keeps on repeating.

Thanks,
Kedar

Hi Kedar,

Thanks for your inquiry.

You can see many examples of this in the demos and also the samples. For instance, the Product Catalog demo here: https://demos.aspose.com/

The same demo and full source code is available in the Aspose folder when you use the MSI installer when installing Aspose.Words.

Thanks,