|
| 1 | +--- |
| 2 | +title: "Document Templates" |
| 3 | +url: /refguide/document-templates/ |
| 4 | +weight: 90 |
| 5 | +aliases: |
| 6 | + - /refguide/Document+Templates.html |
| 7 | + - /refguide/Document+Templates |
| 8 | + - /refguide/creating-your-own-documents/ |
| 9 | + - /refguide/data-view-document-template/ |
| 10 | + - /refguide/document-template/ |
| 11 | + - /refguide/dynamic-image-document-template/ |
| 12 | + - /refguide/dynamic-label-document-template/ |
| 13 | + - /refguide/footer-document-template/ |
| 14 | + - /refguide/header-document-template/ |
| 15 | + - /refguide/line-break-document-template/ |
| 16 | + - /refguide/page-break-document-template/ |
| 17 | + - /refguide/static-image-document-template/ |
| 18 | + - /refguide/static-label-document-template/ |
| 19 | + - /refguide/style/ |
| 20 | + - /refguide/template-grid-document-template/ |
| 21 | + - /refguide/title-document-template/ |
| 22 | + - /refguide/data-grid-document-template/ |
| 23 | + - /refguide/columns-document-template/ |
| 24 | + - /refguide/table-document-template/ |
| 25 | + - /refguide/row-document-template/ |
| 26 | + - /refguide/cell-document-template/ |
| 27 | +#If moving or renaming this doc file, implement a temporary redirect and let the respective team know they should update the URL in the product. See Mapping to Products for more details. |
| 28 | +--- |
| 29 | + |
| 30 | +{{% alert color="warning" %}} |
| 31 | +The use of **Document Templates** and the **Generate Document** microflow action is deprecated and will be removed in a future version of Mendix. |
| 32 | +{{% /alert %}} |
| 33 | + |
| 34 | +## Introduction |
| 35 | + |
| 36 | +Document Templates, previously used to design templates for exporting documents based on application data in Mendix, along with the **Generate Document** microflow action, are now deprecated and will be removed in a future Mendix release. This guide outlines the recommended alternatives for document generation. |
| 37 | + |
| 38 | +To view the documentation of Document Templates, please refer to the [Mendix 10 documentation](/refguide10/document-templates/) instead. |
| 39 | + |
| 40 | +## Alternatives |
| 41 | + |
| 42 | +Document Templates in Mendix allowed the generation of various document types. This section explains the appropriate replacement options for each previously supported document type. |
| 43 | + |
| 44 | +### PDF |
| 45 | + |
| 46 | +To generate PDF documents, use the [PDF Document Generation](/appstore/modules/document-generation/) capability, which allows you to define PDFs based on standard Mendix pages. This approach offers significantly greater flexibility and control over the layout and design of your PDF documents compared to the deprecated Document Templates. |
| 47 | + |
| 48 | +### HTML |
| 49 | + |
| 50 | +To generate HTML documents, create the HTML manually and use the token replacement capabilities of the [Mx Model Reflection](/appstore/modules/model-reflection/#token-configuration) module to insert application data. Open source tools such as [MJML](https://mjml.io/) can assist in designing visually appealing HTML, especially for email templates. |
| 51 | + |
| 52 | +### Microsoft Word |
| 53 | + |
| 54 | +Generating Microsoft Word documents is no longer supported by Mendix. However, there are several alternative solutions available — both free and paid — maintained by Mendix partners and the community that support Word document generation. These can be found in the [Mendix Marketplace](https://marketplace.mendix.com/link/search/word). |
| 55 | + |
| 56 | +### Other Formats |
| 57 | + |
| 58 | +Other formats, including Rich Text Format (.rtf) and OpenDocument Text (.odt), are no longer supported by Mendix and do not have official alternatives. We understand this may impact certain use cases, and we recommend exploring whether supported formats like PDF or HTML can meet your current needs. |
0 commit comments