Templates
  • 23 Aug 2024
  • 1 Minute to read
  • Dark
    Light

Templates

  • Dark
    Light

Article summary

General

Every template of an HTML Report is an HTML Document; each of these HTML Documents can have standard, static content (text, images, a table of contents etc. - every content that is supported by HTML); wherever you want Mail & Deploy to add data to the report document dynamically (e.g. a table from a Datasource, you can reference an Element within the template; this reference will be replaced by the actual content of the element when a report document is created from the report.

Properties

Every template has the following properties:

Name

Description
NameThe name of the template.

Managing Templates

Templates can me modified by opening the report in the Report Designer: To create a new template or import an existing HTML Document as a template, right-click the Templates folder in the content explorer and choose New Template or Import Template. To edit the contents of a template, double-click the template item in the content explorer. To delete an existing template, right-click the template item in the content explorer and click Delete Template.

Single-Template Operation

If the HTML Report has only one template, that template will always be used when a report document is created from the report. In that case, the Template Name(s) property of the report can be left empty.

Multi-Template Operation

Mail & Deploy supports multiple templates per HTML Report; that means that Mail & Deploy can pick the HTML template to use at runtime, based on an Expression.

Example: Let's suppose you want your report to be available in English and in German; you therefore create two templates (one called English and one called German), each containing constant texts in the applicable language. The Template Name(s) property can then be used to define an expression that returns the correct template name for a given report document creation (i.e. based on a language field in the data model).


Was this article helpful?