I would like to replace word tags "{DOCPROPERTY XXXX \* MERGEFORMAT}" with information from arris during the creation of a report.

example:

var docTemplateData = Context.getFile ("Word Template.docm", Constants.LOCATION_SCRIPT);
var oOutput = Context.getOutputObject (getString ("REPORT_TITLE") + extension, docTemplateData);
oOutput.SetTitle (getString ("REPORT_TITLE"));

and here, replace my value XXXX with a value of an object.

For example :
{DOCPROPERTY Author \ * MERGEFORMAT}
{DOCPROPERTY Subject \ * MERGEFORMAT}
{DOCPROPERTY Title \ * MERGEFORMAT}

Do you have an idea ??