Print

(Engine-Level Function)

Description: Allows text to be printed.
Returns: Nothing
Usage: Script Only.
Function Groups: Printer
Related to: FWrite | PrintLine | PrtScrn | Redirect | SWrite
Format: Print(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 is very similar to the PrintLine statement except it does not add the carriage return or line feed after the text.
All print functions are compatible with the values returned in either of the first two parameters of the PrintDialogBox function.

Example:

If 1 NextScreen;
[
  Print(1, "Daily Report: ");
]

This prints the string "Daily Report: " to LPT1:.