Sends arbitrary text to a networked printer
Similar to the To Printer object but unlike To Printer this allows one to select a printer.
menu: veeos ==> sys ==> printText
library: sysLib
o_printText("192.168.1.45",ramp(60,1,60)) prints a ramp of values to single page of text resulting in lines numbered 1 through 60.
By default, o_printText() prints uses a very "vanilla" set of print parameters: 6 lines per inch, 60 lines per page, 80 characters per line.
The open object version of this function allows the user to change these major settings as desired. For the advanced user these settings may also be changed programmatically. To do this, enter a Record to the "printer" input instead of just a text constant. This record should have a field named "printer" and any combination of optional fields named "linesPerInch", "charsPerInch", "topMargin", and "linesPerPage".
This function writes directly to a network printer, bypassing Windows' printer queue and drivers. As such there is no need to install drivers on the machine being used. Note that only PCL printers are currently supported, though postscript could be added if there is demand. The expert user can include any desired PCL commands in the text to be printed if more control is desired. If there's enough demand the printer object could easily enough be given more capabilities.
none
VEE 7.0+, all platforms