Description: This statement allows text to be printed and is followed by a carriage return-line feed to the printer.
Returns: Nothing
Usage: Script
Format: PrintLine(PrinterSpec, Text)
Parameters: PrinterSpec will accept any of the following:
Local Printer:
• Port name (including virtual ports) with or without a trailing colon (e.g. DEF or DEF:; COM1 or COM1:; USB001 or USB001:; etc.)
• Windows printer share (e.g. "XYZ Laser Printer")
• Windows share name (if the printer is shared) (e.g. "XYZLaser")
Local or Remote Printer:
• UNC share name (which includes the host and share name (e.g. "\\localhost\XYlaser" or "\\lab1\NetPrinter")
Text { text } { required } { no default: }
Any text expression that gives the text to print. Control characters may be included in the text.
Text { text } { required } { no default: }
Any text expression that gives the text to print. Control characters may be included in the text.
Comments: This statement adds a carriage return and line feed to the end of the text so that the printer goes to the start of a new line after the text is printed.
In VTS 7.0 and later, all print functions are now compatible with the values returned in either of the first two parameters of the new PrintDialogBox function.
Example:
If 1 NextScreen;
[
PrintLine(1, "Daily Report: ");
]
This prints the string "Daily Report: " to LPT1:, followed by a carriage return and a line feed.
See Also: