(SAT) Demo Application - hosts

Source Code

<config>
dateformat=text
</config>

<page>
<header>
<font univers:16><b>SAT Demo Application - Hosts Report</b>
<hr>

<size 12><b><u>Host</u><@ 15><u>Serial No.</u><@ 30><u>Company</u><@ 45><u>Model</u></b>
</header>

<data>
${host}<@ 15>${serial_no}<@ 30>${company}<@ 45>${model}
</data>

<footer>
<@ 0:42>Page: ${PAGE}<@ 95>${DATE}
</footer>
</page>
Comments

This report defines the layout for printing summary details for all hosts in the demo database.

Called by: printhosts


<config>
dateformat=text
</config>

Start the configuration (<config>). Set the date format to text. End the configuration (</config>).

<page>

Start the page definition.

<header>
<font univers:16><b> SAT Demo Application - Hosts Report</b>
<hr>

<size 12><b><u>Host</u><@ 15><u>Serial No.</u><@ 30><u>Company</u><@ 45><u>Model</u></b>
</header>

Start the page header definition (<header>). At the top of the page the title is printed in a 16 point "univers" font (<font univers:16>). Under the title there is a horizontal rule (<hr>), a blank line, then the column headers in 12 point size (<size 12>), underlined (<u>) and bold (<b>). End the page header definition (</header>).

<data>
${host}<@ 15>${serial_no}<@ 30>${company}<@ 45>${model}
</data>

Start the page data definition (<data>). Each line of data from the query is formatted such that the host column is printed starting at character position 0 (the default for a new line), the serial_no at position 15, the company at position 30, and the model at postion 45. End the page data definition (</data>)

<footer>
<@ 0:42>Page: ${PAGE}<@ 95>${DATE}
</footer>

Start the page footer definition (<footer>). The page number (${PAGE}) is printed on line 42 starting at character position 0, and the current date (${DATE}) at postion 95. End the page footer definition (</footer>).

</page>

End the page definition.


Copyright © 2000 Adrian Davis.