WordTemplater: generate Word documents

Category: Modules
Subcategory: Import/Export

Overview

Since Mendix offers limited possibilities for document generation, we have developed the WordTemplater. It’s a fast and effective way to make your very own templates, which are Word documents. This way anyone can easily generate documents in Mendix. Save time and stop handcrafting your invoices, reports, contracts, corporate letters etc. You can quickly create the template you need by simply making a document in Microsoft Word. To design the document exactly how you want it to look, you can use all features and functionality that Word offers. What you see, is what you get. For an example project please search the Mendix app store for: WordTemplater Example Project For who - Developers - ALL business users - Developers - Business users Benefits - Total control of specific styling wishes - No styling needed in Mendix - Layout your documents visually - Easy to collaborate with others - Adopt your corporate identity in documents - No technical background or programmer needed - Generate documents in large numbers - No need to redeploy your Mendix application - Reduces the risk of mistakes by automating your document generation - No need to configure your environment, the logic is included in the application - Document variables are automatically generated based on your domain model - Easy to switch to the WordTemplater when generating documents with the default Mendix functionality. Try it for FREE The WordTemplater is now available for a free monthly trial. You only have to request a trial license at https://word-templater-licensing.jam-api.nl. The trial license is valid for one month. All features of the WordTemplater are available. Have fun. Our pricing We believe in fair, transparent and simple pricing. That’s why we offer an annual plan for €2500 per app. There is no charge per user or document. Contact If you have any questions or would like to request a license, please contact us at info@jam-it.nl. For more information visit our website at www.jam-it.nl. Do you need PDF? Converting documents to pdf and pdf-a1 is a service that we offer in a separate project. Contact us for more details.

Documentation

null
Demo urlhttps://wordtemplater.mxapps.io

Word Templater documentation

There are a few variables with different “types” that can be used:

Text variable

This is “normal” text. Booleans (true / false) are not included here.Example: `${File/Relationship/Name}` The first variable is the name of the start entity (Dossier). The last variable is the name of the attribute (Name). The variables in between are the name or names of the relations (Relationship).

Image variable

This variable works the same as a text variable but is replaced by an image.Example: ${LegalDistributionPieChart/PieChart}The width of an image is initially the original width of the image. However, if the image is wider than the page, the image will be as wide as the page. When an image variable is placed in a table, the width of the image is spread over the width of the page depending on the number of columns of the table.

Conditie variable

These are variable of the boolean type (true or false) and can be used in an “if statement”. The content of an if statement is only shown if the if condition results in “true”.Example: ` This person is active `

Possible values are:

  • EQ (equals)
  • NE (not equals)
  • IS NOT NULL (not null)
  • IS NULL (null)
  • GE (greater or equals)
  • GT (greater then)
  • LE (lesser or equals)
  • LT (lesser then)

Table row condition variable

These are variable of the boolean type (true or false) and can be used in an “if statement” placed in the first cell of a row. A row in a table is only shown if the if condition results in “true”.Example: ``

Table variable

This variable can only be used in a table. When using this variable, additional rows are automatically created from the list that is being used.Example: `${Table/Dossier/Relationship/Children/Name}`

Bullet variable

This variable can only be used in a bullet list. When using this variable, additional bullets are automatically created from the list that is being used.Example: `${Bullet/Dossier/Children/Name}`

Markup

It is possible to influence the formatting of a text by means of a markup language. The implementation used is CommonMark: http://spec.commonmark.org/

The following formatting is currently supported:

* Italic: *text* * Bold: **text** * Underline: ++underline++ * Highlighting: ==Text to be highlighted== * Warning: !! Consider this a warning.

Tips

Align amounts

If you want to have the euro sign left and the amount right aligned in a row, you can enter the amount as follows:`€ 500.00`Then, to align the amounts to the right, select the amounts and place a “right tab stop”. For more information about tab stops see https://support.office.com/en-us/article/Set-clear-or-remove-tab-stops-06969e0f-2c81-4fe0-8df5-88f18087a8e0To get a formatted amount from Mendix with a `` you can use JamCommons.RetrieveFormattedTabbedCurrency

Releases

Version: 2.0.0
Framework Version: 9.0.5
Release Notes: Update from Mendix 8.17.1 to 9.0.5
Version: 1.5.0
Framework Version: 8.4.1
Release Notes: Updated description and documentation.
Version: 1.4.0
Framework Version: 8.4.1
Release Notes: Update to java 11 Update to Mendix 8
Version: 1.3.0
Framework Version: 7.23.7
Release Notes: * Fixed bugs / Improved performance
Version: 1.2.0
Framework Version: 7.23.7
Release Notes: - POI update - Improved error messages - Improved performance by skipping system members