Free Support Forum - aspose.com

How to create more complex tables

Attached is a document that explains the type of template we require of a mail merge vendor. We need to be able to layout more complex table layouts with multiple tags. I have communicated this requirement to sales. I appreciate you reviewing the attached document and getting back to us on a solution.

Hi Gloria,

We are analyzing your requirement and let you know once it is complete.

Best Regards,
Muhammad Ijaz
Support Developer, Saaspose Sialkot Team
http://www.saaspose.com

Hi Gloria,

Yes, it is possible. I have created a new document and XML according to your requirement which generates exactly the same output as you have mentioned in your requirement doc.

Please use the attached document and XML to execute mail merge with regions and feel free to contact us in case you have further comments or questions.

Best Regards,
Muhammad Ijaz
Support Developer, Saaspose Sialkot Team
http://www.saaspose.com

The file Complex_Output.docx is NOT printing the data in the required format. There needs to be just one table in the document with all the categories, subcategories and options in that table.

Hi Gloria,

Sorry for the confusion. I have updated Complex.docx to print all the categories, subcategories and options in one table; please check Complex_Output.docx for reference. I have made the following modifications:

- Removed all rows of main table except first (single cell) row
- Placed TableStart:/TableEnd:Category tags in that single cell of the main table
- Inserted a new table without a header row and added rows, columns and merge fields in this sub-table according to the requirement
- Removed left and right borders of the sub-table
- Removed bottom border of the main table
- Reduced left and right margins of the main table to '0' in the table properties
- Used 'cleanup=EmptyParagraphs' parameter in the URI e.g. "http://api.saaspose.com/v1.0/words/Complex.docx/executeMailMerge?withRegions=true&cleanup=EmptyParagraphs"

Now, output looks exactly the same as it was in the requirement doc. Please let us know if this solution works for you.

Best Regards,
Muhammad Ijaz
Support Developer, Saaspose Sialkot Team
http://www.saaspose.com

Hi Gloria,

Could you please let us know that the last suggestion from our support team worked for you? If you still find any issue or need further assistance, we'll help you out.

Thanks & Regards
Shahzad Latif
Saaspose Support Team.