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

Free Support Forum - aspose.com

Manuscript Template generation with result and Merge fields

Is there was a way to generate a Manuscript template after merging with the data, while keeping both the Results and the Merge Fields.

Hi Prashanth,

Can you please sure a sample input template and output document for reference?

Best Regards,

Hi team,

I attached the resulted document which is i am looking for. If you press “Alt+F9” we can see the merge field actual names , again if you press “Alt+F9” we can see the resulted value.
Please suggest me how can i get this result from ASPOSE Java API.

Thanks.

Hi Prashanth,

This is default value of the field. You can set it using the following code.

Document doc = new Document();

DocumentBuilder builder = new DocumentBuilder(doc);

builder.InsertField(@"MERGEFIELD Premium \* MERGEFORMAT", "Field Value");

doc.Save("Document1.docx");<?xml:namespace prefix = "o" ns = "urn:schemas-microsoft-com:office:office" />

Best Regards,