This chapter describes the techniques to create standard print reports. ALVAO Asset Management is open in therms of print reports, i.e. users can edit the standard print reports and create new ones. The program properties described in this and related chapters may change in future. The following sections assume that the readers are familiarized with HTML, XML and XSL.
ALVAO Asset Management creates output print reports as HTML documents. Microsoft Internet Explorer is then used to view and print the reports.
Follow these steps to create a print report:
Go to the Objects tree and select the object to print.
Go to the File menu and select
- Print.
A window opens where you can select the print report, i.e. where you can select a file with the REP, RP2 or EPQ file extension. EPQ files contain saved queries. These are not described in this chapter. The REP files are basic print report files. Each file defines one print report type, e.g. Asset Card, in other words it defines the Asset Card print report.
Further processing follows the scheme below:
The system generates a working XML file which describes the object selected by the user for print. The level of detail of the information saved in the XML file depends on the settings saved in the REP file. The REP file further contains the print report HTML document name which will be displayed in Microsoft Explorer, once the macros have been replaced with values.
The HTML document can use the following macros:
The files with the REP file extension are text files which contains the definition for the output print report.
A REP file contains several lines with the following syntax:
Variable=Value
Example:
VERSION=XMLReport1
Example of the Asset Card file:
VERSION=XMLReport1
TYPE=Null
HTML=Asset_Card.htm
FLAGS=children,ownprop,inheritedprop,notice
This section describes the XML file structure which will be used to create the print report. The file contains an image of the object (including all sub-objects) over which the print report is created (i.e. the object selected in the Objects tree). Which elements will be contained in the XML file and which will not, depends on the settings of the FLAGS item in the REP file.
XML file format (DTD):
<!ENTITY ONE "1">
<!ELEMENT report (node*)>
<!ELEMENT node (name, icon, proplist?, noticelist?, historylist?, nodelist?)>
<!ELEMENT name (#PCDATA)>
<!ELEMENT icon (#PCDATA)>
<!ELEMENT proplist (prop*)>
<!ELEMENT noticelist (notice*)>
<!ELEMENT historylist (history*)>
<!ELEMENT nodelist (node*)>
<!ELEMENT prop (value, kind, own?, inherited?, special?)>
<!ELEMENT value (#PCDATA)>
<!ELEMENT kind (#PCDATA)>
<!ELEMENT own (&ONE;)>
<!ELEMENT inherited (&ONE;)>
<!ELEMENT special (&ONE;)>
<!ELEMENT notice (date, desc, user)>
<!ELEMENT date (#PCDATA)>
<!ELEMENT desc (#PCDATA)>
<!ELEMENT user (#PCDATA)>
<!ELEMENT history (date, desc, user)>
Explanation of elements:
Print Reports Customization
Add corporate logo to print report header
Go to the Csy\Reports folder and replace the file logo.gif with the file that you wish to print in the header of each print report. The maximum image height should be no more than 100 px.
Note:
If you display the print report on the screen, the logo will be hidden. It will only be displayed in the print page preview.
Add software usage disclaimer in the Handover Protocol
Open the file Internal handover protocol differential.xsl and find the "Disclaimer text" string. Insert your custom text in HTML behind the note.