Free Support Forum - aspose.com

Simple Mail Merge - Railo (ColdFusion) - Word 2013 - docx

Apologies for the subject, but I’m not sure which particular item is the issue!

Basically I want to do a Find/Replace on a Word 2013 docx using Railo(/ColdFusion). I have implemented the simple Mail Merge on:

http://www.aspose.com/docs/display/wordsjava/ColdFusion+and+Aspose.Words+for+Java

…with one problem; apart from the Evaluation statement, the generated out.docx hasn’t got any changes. I’ve used placeholders and have tried saving as a standard Word 2013 docx and as a OpenXML docx.

Any suggestions?

Hi,

Sorry, I was not able to see any issue in using simple mail merge example at my end. Can you please share your input Word document and complete code to reproduce the issue?

Best Regards,

Thanks for the reply.

Yes, here are the two files. Perhaps it’s something to do with the placeholders…?

Hi,

Yes, you are right. There are no merge fields in your document. Your placeholders should be inserted as merge fields to fill them with data. Please check http://www.aspose.com/docs/display/wordsjava/Prepare+a+Document for more details on how to insert merge fields.

Best Regards,

Ah!
Thanks so much!

I thought that Word 2013 had changed to ‘insert fields’ to ‘placeholders’. But I needed to go through the process of creating a mail merge source file first (at least for the field names).

Works perfectly!

Hi,

Good to know that the issue is resolved and thanks for letting us know.

Best Regards,