The lncprtdoc web method is used to execute Word mailmerge from a model and using data source (CSV file). The lncprtdoc method is called using HTTP POST requests because the parameters of the command are sent in the POST message body.
The following URL is used: /launcher/lncprtdoc
This is the different parameters :
<command name="LNCPRTDOC">
<param1>
<param name="Doc" default="*New"/>
<param name="WordPath" default="notrequired"/>
<param name="MrgType" default="*FILE"/>
<param name="UnLink" default="true"/>
<param name="DataSource" default="" type="string"/>
<param name="OutSave" default="false"/>
<param name="MrgSel" default="*LTR"/>
<param name="SavFmt" default="*NORMAL"/>
<param name="ExecMrg" default="true"/>
<param name="DltLgn" default="true"/>
<param name="ShowDoc" default="false"/>
<param name="SavDoc" default="" type="string"/>
</param1>
</command>
Parameters |
Description |
String Doc |
Template name. Example: C:\\temp\\template.docx |
String WordPath |
Default directory of Word. |
String MrgType |
Can take the following values : • *NONE : no merge • *FILE : data source to merge comes from CSV file or database. |
String Unlink |
Can take the following values : • True : deleting blank fields • False : none |
String OutSave |
Can take the following values : • True : save the generated document • False : none |
String MrgSel |
Merge format : • *LTR : letter format • *CAT : catalog format |
String ExecMrg |
Can take the following values : • True : exécution of the mail merge • False : the document is only prepared for the mail merge |
String DltLgn |
Can take the following values : • True : delete blank lines after merging • False : none |
String DataSource |
Complete path of the CSV file. |
String ShowDoc |
Can take the following values : • True : to show the document • False : document not visible |
String SavDoc |
Complete path of the result document Example: C:\\temp\\result.docx |
String SavFmt |
Can take the following values : • *NORMAL : format of the template file • *DOC : Word format • *HTM : HTML format
|