Tags for generating .docx documents through APIs
APIs support generating formatted and personalized documents that you can use during case processing. To save time and resources, the pxGenerateWordDocument API provides the possibility of generating a .docx document on the server side, without installing additional software, such as Silverlight.
To switch from the Silverlight software to the pxGenerateWordDocument API, move your Silverlight documents templates to the new server-side document generating format. The following table provides information about support for Silverlight tags in the pxGenerateWordDocument API:
Tag in Silverlight | Support in the pxGenerateWordDocument API | Comments |
{pega:reference propertyreference } | Yes |
|
{pega:attachment attachfile=”propertyName.insertMethod.extension.pzInsKey”} | No |
|
{pega:insert corr=corrname} | Partial |
|
{pega:insert corrinline=corrname} | No |
|
{pega:binary imagefile= AppName.imageFileName.FileType} | No |
|
{pega:binary binaryfile=TemplateClass.TemplateName} | No | No support for reading the template and parsing the tags inside the template, and then adding the template back to the target file. |
{pega:binary imagefilelocalpath="LocalPath" } | No | N/A |
{pega:binary imagefileserverpath ="ServerPath" } | No | N/A |
The specifications of the pxGenerateWordDocument API are as follows:
- The pxGenerateWordDocument API supports templates in .docx format only.
- No support for macros inside templates.
- The output format of the documents that you generate through the pxGenerateWordDocument API is always .docx.
- No support for client-side editing of documents that you generate through the pxGenerateWordDocument API.
- The pxGenerateWordDocument API creates documents in the
following ways:
- The pxGenerateWordDocument API adds .docx attachments inline.
- The pxGenerateWordDocument API adds images inline and does not support the .svg images.
- The pxGenerateWordDocument API adds attachments other than .docx format and images in the .svg format as OLE objects inside the generated .docx output document.
- Inside tables, headers, and footers, the pxGenerateWordDocument API supports the addition of image attachments only.
Previous topic Activities for integrating cases with Excel documents Next topic Moving a case to a different stage