printText(printer,text)

Sends arbitrary text to a networked printer


Syntax

o_printText(printer,text)
printer: scalar text - network name or address of desired printer
text: any text - text to be printed

Usage

Similar to the To Printer object but unlike To Printer this allows one to select a printer.

Location

menu: veeos ==> sys ==> printText

library: sysLib

Example

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.

Notes

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".

Reference

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.

Dependencies

none

Supported On

VEE 7.0+, all platforms

See Also


© 2015-2025. All Rights Reserved. Stan Bischof (stan@worldbadminton.com). Last updated 03 February 2023 13:03.