HEADER

From CometWiki

(Difference between revisions)
Jump to: navigation, search
(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...)
Line 1: Line 1:
-
HEADER  
+
 
-
Syntax:  HEADER report-header   
+
== 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.  
+
'''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.  
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 11:
Also see FOOTER.  
Also see FOOTER.  
   
   
-
History:  The HEADER command was added in version 01.01.   
+
'''History:''' The HEADER command was added in version 01.01.   
-
Example 1:  PRINTER TERMINAL,HTML
+
'''Example 1:''' 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. The HEADER command sends the HTML data to the browser one time, at the start of the report.   
-
Example 2:  PRINTER TERMINAL,HTML
+
'''Example 2:'''
-
HEADER "<BODY background=logo.jpg>"
+
  PRINTER TERMINAL,HTML
-
HEADER "<H2>"
+
<pre>
-
HEADER "<A HREF='http://...'>Click here to return to the home page</A>"
+
HEADER "<BODY background=logo.jpg>"
-
HEADER "</H2>"
+
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.

Revision as of 09:24, 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.

Personal tools