Hi,
We have an issue using Aspose word.
The issue is related to Microsoft Word mail merge when Word is supplied with long field names.
Word internally truncates the long field names where necessary before
displaying them to the user to place onto the page. It seems to sometime truncate to 36, 37 or 37 characters. I can’t seem to find a pattern.
During the Mail Merge using aspose I have to truncate the field names as per the workings in MS Word. Could you please update Aspose.Word to handle the truncation of field names as done by MS Word?
This issue was raised in the forums earlier . … please see in the URL:
https://forum.aspose.com/t/bug-long-mail-merge-fields-values-not-appearing-in-output/130640/2
I have also attached some test files.
- In first stage we built a template document. The datasource file ‘DataSource-Orig.doc’ was was used to create template merge file ‘Template-Orig.dot’. This was done manually by manually opening a word template and attaching the datasource. Short named MS word merge fields were available in the list of merge fields and added to template document.
- However during merging, using Aspose, the ‘Template-Orig.dot’ file with document ‘DataSource-Aspose.doc’, I had to modify \shorten the field names in the ‘DataSource-Aspose.doc’ file for his Aspose merge to work. As mentioned the field names seem to sometime truncate to 36, 37 or 37 characters.
The output.doc file is result of the aspose merge, which you can see has not been merged properly as some of the fields lengths have not been truncates correctly to match field name in the template.
Thanks,
Rana