This commit is contained in:
2021-09-06 19:37:56 +00:00
parent 63e272d23b
commit 5c325dbe64
3 changed files with 42 additions and 15 deletions

View File

@@ -62,9 +62,9 @@ Report generation consists of two distinct and separate processes: Processing th
* `Scale` scales the report rendering, must be a value between 0.1 and 2, the default is 1
##### PDF header / footer template notes
#### PDF header / footer template details
The CSS section of the Report template is separate from the header footer templates and not connected at all. Headers and footers require their own complete inline css to be specified as they are part of the PDF generating system, not the Report generating system.
The CSS section of the Report template is completely separate from the CSS Header & Footer templates. CSS Headers and footers require their own complete inline css to be specified as they are part of the PDF generating system, not the Report generating system.
Example:
Show todays date in the header, and Page x of XX - note also total pages refers to TOTAL pages, NOT pages per object (i.e. if printing from a list of workorders, the total pages will be ALL workorders pages, not pages per workorder.
@@ -78,8 +78,6 @@ Footer
<span style="font-size:6pt;width: 94%; text-align: right; ">Page&nbsp;<span class="pageNumber"></span>&nbsp;of&nbsp;<span class="totalPages"></span>&nbsp;&nbsp;&nbsp;&nbsp;</span>
```
### Report Template
The main HTML / Handlebars template. This is where the report is defined and is required to render a report. A template is a mixture of both source HTML and Handlebars templates combined with data to generate the final report HTML.
@@ -91,7 +89,6 @@ In order to get up to speed quickly with report design we recommend looking over
This section is provided to define the HTML Cascading Style Sheet for the report document. This section is optional.
### Prepare
This section is provided as a way to change the data provided to the report *before* it is rendered.