HEADER

From CometWiki

Jump to: navigation, search

HEADER

Syntax:
HEADER report-header
Placement:
Place the HEADER command before the REPORT command.
Discussion:
The HEADER command sends data to the output device one time, at the start of the report.
The data following the command name is simply put into an MTB PRINT statement, so if you want to print a string you must supply the quotation marks.

To send multiple report header lines, use multiple HEADER commands.

Also see FOOTER.

History:
The HEADER command was added in version 01.01.

Example 1:

PRINTER TERMINAL,HTML
HEADER "<BODY bgcolor=papayawhip>"

This example shows how to specify the background color for a report that will be displayed in a web browser.
The HEADER command sends the HTML data to the browser one time, at the start of the report.

Example 2:

PRINTER TERMINAL,HTML
 HEADER "<BODY background=logo.jpg>"
 HEADER "<H2>"
 HEADER "<A HREF='http://...'>Click here to return to the home page</A>"
 HEADER "</H2>"

This example shows how to send multiple header lines to the output device. In this case, the report will be displayed in a web browser, and the multiple header lines are multiple HTML commands that will be sent to the browser one time, at the start of the report.

Personal tools