PrintLine

(Engine-Level Function)

Description: Allows text to be printed and is followed by a carriage return-line feed to the printer.
Returns: Nothing
Usage: Script Only.
Function Groups: Printer
Related to: FWrite | Print | PrtScrn | Redirect | SWrite
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: Required. 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.
All print functions are compatible with the values returned in either of the first two parameters of the 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.