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.

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, though if there is enough demand o_printText() could be expanded to include user-specified printer options.

Dependencies

none

Supported On

VEE 7.0+, all platforms

See Also


© 2015. All Rights Reserved.  Stan Bischof (stan@worldbadminton.com). Last updated 30 November 2016 08:57. © 2015.