HEADER

From CometWiki

(Difference between revisions)
Jump to: navigation, search
 
Line 1: Line 1:
-
 
== HEADER ==
== HEADER ==
   
   
-
'''Syntax:'''  HEADER report-header   
+
'''Syntax:'''<br> HEADER report-header <br>  
-
'''Placement:'''  Place the HEADER command before the REPORT command.   
+
'''Placement:''' <br> Place the HEADER command before the REPORT command. <br>  
-
'''Discussion:'''  The HEADER command sends data to the output device one time, at the start of the report.  
+
'''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 11: 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:'''  PRINTER TERMINAL,HTML
+
 
 +
'''Example 1:''' <br>
 +
  PRINTER TERMINAL,HTML
  HEADER "<BODY bgcolor=papayawhip>"
  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.   
+
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:'''  
'''Example 2:'''  
  PRINTER TERMINAL,HTML
  PRINTER TERMINAL,HTML

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.