|
The Report node creates formatted reports containing fixed text as well as data and other
expressions derived from the data. You specify the format of the report using text templates to
define the fixed text and data output constructions. You can provide custom text formatting by using
HTML tags in the template and by setting options on the Output tab. You can include data values and
other conditional output by using CLEM expressions in the template.
|
Example
node = stream.create("report", "My node")
node.setPropertyValue("output_format", "HTML")
node.setPropertyValue("full_filename", "C:/report_output.html")
node.setPropertyValue("lines_per_page", 50)
node.setPropertyValue("title", "Report node created by a script")
node.setPropertyValue("highlights", False)
Table 1. reportnode properties
reportnode properties |
Data type |
Property description |
output_mode |
Screen
File |
Used to specify target location for output generated from the
output node. |
output_format |
HTML (.html)
Text (.txt)
Output (.cou) |
Used to specify the type of file output. |
format
|
Auto
Custom |
Used to choose whether output is automatically formatted or formatted using HTML included in
the template. To use HTML formatting in the template, specify Custom . |
use_output_name |
flag |
Specifies whether a custom output name is used. |
output_name |
string |
If use_output_name is true, specifies the
name to use. |
text |
string |
|
full_filename |
string |
|
highlights |
flag |
|
title |
string |
|
lines_per_page |
number |
|