How to Generate a Word Document from Code

Docentric AX introduces new APIs that enable varios new scenarios:

  • Generate Word document from template as a binary (to a container).
    Generated document data can be used afterwards, e.g. sent as the attachment of an email.
  • Generate Word document from template on both client and server without attaching it to the Primary table record.
  • Generate Word document from template on both client and server and attach it to the Primary table record.
  • In contrast to the standard Word documents, a possibility to run on server side enables also batch scenarios.
  • You can specify a run-time language as well which is important for multilingual documents.
    (Docentric AX enables use of labels on Word templates)

Take a look at the following job:

See also

How to Email and Print Word Documents >>
How to Use Labels with Word Documents >>
Download Examples for Word Documents >>

IN THIS ARTICLE