Hi Christophe,
Looks like field names in template are not matching with the field names in data. Please follow http://www.aspose.com/docs/display/wordsjava/How+to++Apply+Custom+Formatting+during+Mail+Merge to check the field names coming from the database.
Please also share the data in XML format for further analysis.
Best Regards,
Hi Muhammad,
Hi Christophe,
Aspose.Words does not directly connect to MySQL so there is no issue of connectors with Aspose.Words. It uses offline data sources (DataTable and XML etc.) . Table and field names in the offline data source should match the table and merge field names in the Word template.
I get correct output when I use matching fields with your XML data however there are multiple templates and XMLs in the samples you have shared and it is not clear which XML is used with which Word template; field names in XML are also not matching the field names in the template.
Can you please share a single Word template and matching XML data to reproduce the issue?
Best Regards,
Hi,
Hi Christophe,
The template attached to your post does not have any table (TableStart and TableEnd merge fields) so executeWithRegions will not work in this case. You need to execute simple mail merge in this case.
As far as tabular data is concerned, we will update your template to handle tabular data according to your SQL and share updated example with you soon.
Best Regards,
Hi Muhammad,
Hi Christophe,
We are working on this issue and will update you soon.
Best Regards,