We're sorry Aspose doesn't work properply without JavaScript enabled.

Free Support Forum - aspose.com

MailMerge FieldNames

Hi, im using the evaluation version of Aspose words for java. Im having a template letter with Mail Merge fields, after replacing the fields with the aspose API, in the output document im getting someting like this

Street= High Ridge Road

Where "Street" is the name of the Mail Merge Field.

Is there any way to get rid of mail merge field names in the output document ?? Below the piece of code im using

Document letter = new Document("DUMMY LETTER.doc");

Document clone = letter.deepClone();

clone.getMailMerge().setRemoveEmptyParagraphs(true);

clone.getMailMerge().execute(String[], Object[]);

clone.getMailMerge().deleteFields();

clone.save("instance.doc",SaveFormat.DOC);

Hello

<?xml:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" />

Thanks for your inquiry. Could you please attach your template document and the output document here for testing? I will check the problem on my side and provide you more information.

Best regards,

Documents attached

Hi Edgar,

Thanks for attaching your documents.

I was unable to reproduce the issue using your code and this dummy data for merging:

clone.getMailMerge().execute(new String[] {"FirstName", "LastName"}, new String[] {"FirstNameValue1", "LastNameValue1"});

Could you please post the data you are using for merging here and we will provide you with some further feedback.

Thanks,