SendCommPort

Sends data to the device serial port. This command replaces the commands Device.PrinterOn and Device.PrinterOff that are still supported but are now obsolete. The server will automatically turn transparent print mode on or off as required.

Group: Device Extensions


Syntax: [bOK] = Device.SendCommPort(vPacket, iPort)

bOK        (Boolean) Optional return value showing success or failure

vPacket   (Variant) is the text stream to be sent to the serial port.

iPort        (Integer) when set to a number other than zero it will route the data to this COM port, if already configured. When set to zero, the default, it will send to the first COM port configured with the Device.SetCommPort.

Example:

Sending a Tab character to a device that expects this format.

Device.SendCommPort("&T",3)