Tutorial: Creating individual Report Templates
Individual report templates can be created best in a text editor of your choice.
Use the following steps and the examples
to create your own report template:
- Create an empty file in your text editor. Save the file and use the
file extension ".rpttpl". This is your report template.
- Decide on a format type for your report template. We recommend using
the DocBook format, but other formats, such
as CSV and XML can be used as well.
- Add a header to your report template.
- Describe the formal structure of
your report in a way that corresponds to the report format. For creating
a report in the DocBook format you can use our example.
- Extend your report template with velocity
directives to define the content structure.
- Fill your report template with placeholders for data from your
Cockpit project.
- If your report template is a DocBook you can use
format templates
to define the layout of your report.
- Save your report template and add
it to your project to use it for the report generation.
Related Topics:
Example: Creating individual Report Templates
The Report Template Header
Example Header (DocBook)
Example Header (other Formats)
Deciding on the Formal Structure of the Report
DocBook (general)
DocBook Reference
DocBook Example
Deciding on the Content Structure of the Report
Velocity Template Language (VTL) (general)
Velocity Template Language Reference
DocBook Example with Velocity Directives
Adding Cockpit Data to the Report
DocBook Example with ARCWAY Cockpit Data
Using Format Templates