QR SET HTML TEMPLATE
QR SET HTML TEMPLATE ( area ; template )
Parameter | Type | Description | |
---|---|---|---|
area | Integer | → | Reference of the area |
template | Text | → | HTML template |
This command is not thread-safe, it cannot be used in preemptive code.
Description
The QR SET HTML TEMPLATE command sets the HTML template currently used for the Quick Report area. The template will be used when building the report in HTML format.
The template uses a set of tags to process the data in order to either retain a layout close to the original report or to adopt your own custom HTML.
Note: You first need to call QR SET DESTINATION to set the output to HTML file.
HTML Tags
...
The HTML contents that are included between these tags come from the column titles. You will typically use these tags to define the title row of the report.
...
The HTML contents that are included between these tags are repeated for each data row (including detail and subtotal rows).
...
The HTML contents that are included between these tags are repeated for each data column within a row. The column order will remain identical to the order in the report. When used in conjunction with ... , the tags ... will only go through the columns whose contents are not inserted using ... .
For example, in a report that has five columns, you choose to use ... to insert data from the second column, ... will go, for each row, through columns 1, 3, 4, and 5. These last tags ignore the column whose contents are published using ... .
...
The HTML contents that are included between these tags are extracted from the column in the report whose number is “n”. If, for example, you want to display a different column order in the HTML output for a three-column report, you could use:
... ... ...
In this example, the columns are inserted in the opposite order of the report.
...
The HTML contents that are included between these tags will be assigned the font of the current column or cell.
will be replaced by an HTML font definition and will be replaced by the matching closing tag ().
...
The HTML contents that are included between these tags will be assigned the font style of the current column or cell.
will be replaced by an HTML face definition and will be replaced by the matching closing tag ().
This color tag will be replaced by the current color for the current cell.
This tag will be replaced by the current data for the current cell.
These tags will be replaced respectively by the data in the left, center or right header.
These tags will be replaced respectively by the data in the left, center or right footer.
If you pass an invalid area number, the error -9850 will be generated.