Dear Aspose Team,
With {IF … }
Mergefields we can display some info depending on some mergefields values.
Example: I have a list of orders and I only display the VIP customer addresses with something like that:
«TableStart:orders»
{IF {MERGEFIELD customerType } = “VIP” {MERGEFIELD address } }
«TableEnd:orders»
It works fine.
If we insert the {MERGEFIELD address}
into a table which is inside this IF mergefield, we get a lot of space between each address-entry.
I have attached a small maven project that illustrates this problem. It is very easy to use: there are only 2 classes.
- one for creating dummy data
- one for creating the pdf. It has a main method, just run it and you will get the report.pdf in your temp directory.
The template (docx) is in the project resources directory.
As you will see using the MailMergeCleanupOptions does not help here. Do we make something wrong?
Thanks in advance
Emmanuel