HEADER

From CometWiki

(Difference between revisions)
Jump to: navigation, search
Badge (Talk | contribs)
(New page: 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 s...)
Newer edit →

Revision as of 12:56, 5 June 2009

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 "

" HEADER "<A HREF='http://...'>Click here to return to the home page</A>" HEADER "

"

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