Currently I'm evaluating Aspose.Words for use in a project I'm working on and I must say: I'm impressed with the powerful yet easy to use API.
I have a few questions about using mail merge:
1) I am aware that Range.UpdateFields() only updates DOCPROPERTY and DOCVARIABLE fields for the moment. Any news on when and what other fields will be supported (IF, ASK, COMPARE, ...)?
2) Is there a way to control the size of an image being inserted in the template (using MergeImageField-event)?
3) When I use merge regions (ExecuteWithRegions) I would sometimes like to repeat the records one after another instead of below each other. An example:
I have a DataTable "Items" which looks like this:
1 Item 1
2 Item 2
3 Item 3
I would like to display the following in my document:
Item 1 (ID 1) / Item 2 (ID 2) / Item 3 (ID 3) /
To achieve this, I put the following merge fields in my template:
<><> (<>) /<>
The result is the following:
Item 1 (ID 1) /
Item 2 (ID 2) /
Item 3 (ID 3) /
The mail merge engine seems to repeat the entire paragraph instead of only the document content between TableStart and TableEnd. If I add text before and after TableStart and TableEnd this text is repeated also:
Before table <><> (<>) /<> after table
Before table Item 1 (ID 1) / after table
Before table Item 2 (ID 2) / after table
Before table Item 3 (ID 3) / after table
Am I missing something when using repeatable regions?
4) Another merge with regions question: I have a data table with the following columns:
My template looks like this:
<> <> <> <>
The image in the DataTable is not merged into the document. Are data columns of type Image supported or do I have to solve this using the MergeImageField-event?
Thanks in advance for your reply.