SendCustomCommand Method

Sends a custom command identified by the specified command identifier to the printer.

C#

private void SendCustomCommand(string commandID);

Parameters

Parameter Description
string commandID A string containing the name of a setting in the current printer settings.

Remarks

The contents of the internal buffer is sent to the printer via the transport medium when the buffer is full or when a call to flush or LinePrinter.newLine is made.

The CommandID parameter specifies a setting name defined in the current printer settings. The command setting value must be a string or a byte array.

You may define custom commands in the commands and attributes file or string specified in the concrete class constructor, or add custom commands via the setSettingBytes and setSettingString methods.