HEADER
From CometWiki
(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...) |
|||
(One intermediate revision not shown) | |||
Line 1: | Line 1: | ||
- | HEADER | + | == HEADER == |
- | Syntax: HEADER report-header | + | |
- | Placement: Place the HEADER command before the REPORT command. | + | '''Syntax:'''<br> HEADER report-header <br> |
- | Discussion: The HEADER command sends data to the output device one time, at the start of the report. | + | '''Placement:''' <br> Place the HEADER command before the REPORT command. <br> |
+ | '''Discussion:''' <br> The HEADER command sends data to the output device one time, at the start of the report. <br> | ||
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. | 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. | ||
Line 9: | Line 10: | ||
Also see FOOTER. | Also see FOOTER. | ||
- | History: The HEADER command was added in version 01.01. | + | '''History:''' <br> The HEADER command was added in version 01.01. |
- | + | ||
- | + | ||
- | + | '''Example 1:''' <br> | |
- | Example | + | PRINTER TERMINAL,HTML |
- | HEADER "<BODY | + | HEADER "<BODY bgcolor=papayawhip>" |
- | + | ||
- | + | ||
- | + | ||
+ | This example shows how to specify the background color for a report that will be displayed in a web browser.<br> The HEADER command sends the HTML data to the browser one time, at the start of the report. | ||
+ | |||
+ | '''Example 2:''' | ||
+ | PRINTER TERMINAL,HTML | ||
+ | <pre> | ||
+ | HEADER "<BODY background=logo.jpg>" | ||
+ | HEADER "<H2>" | ||
+ | HEADER "<A HREF='http://...'>Click here to return to the home page</A>" | ||
+ | HEADER "</H2>" | ||
+ | </pre> | ||
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. | 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. |
Latest revision as of 09:27, 6 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 "<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.