Creating a table where mailmerge data row expands over more than 1 row in table


#1

Hello,

I need to create a table containing merged cells in the following layout for each row in the dataTable :

«TableStart:Item»«ItemNumber»

«ItemIdentification»

«ItemImportance»

Observation

«ItemObservation»

Action

«ItemAction»

Response

«TableEnd:Item»

However when i call doc.MailMerge.ExecuteWithRegions(docDataTable);

I get the following error :

Mail merge region 'Item' is badly formed. TableStart and TableEnd should be in the same section, same table row or same table cell.

Could you please let me know if there is a workaround for this? And what is meant by 'same section'?

I really dont want to build the table dynamically as this will mean hardcoding the layout of the table, which is not really acceptable to our client.

Any help will be much appreciated.

Thanks,

Barsana


#2

Section is a part of the document. You can break the document to sections by using Insert | Break menu in MS Word. Each section can have each own page size and orientation, headers/footers and other File | Page Setup features.

The region placement limitation can be worked around however. The technique is described in the following thread:

http://www.aspose.com/Community/forums/thread/54667.aspx

Hope that helps. Please don't hesitate to inform me if you need further assistance with this issue.

Best regards,