Skip to main content

Print job selection

selectPrintJob

The selectPrintJob method is a very powerful method that allows control of what to print. The simplest form deselects any existing jobs, or selects a single label, but it can also set up a database driven job. The job can either replace the existing job, or add it to a queue.

The content is described in Print job.

Returns

null

Examples

Deselect all print jobs (clearing the queue):

{"jsonrpc": "2.0", "method": "selectPrintJob", "params": {}}

Select a single label "MyLabel":

{"jsonrpc": "2.0", "method": "selectPrintJob", "params": {"labelName": "MyLabel"}}

Select a single label "MyLabel", limit to a single print, and add to the end of the queue:

{
"jsonrpc": "2.0",
"method": "selectPrintJob",
"params": {"labelName": "MyLabel", "copies": 1, "queue": true}
}

Search the table "MyTable" in the column "Product" for "MyProduct", and select the label from the column "Label":

{
"jsonrpc": "2.0",
"method": "getLabel",
"params": {
"tableName": "MyTable",
"keyColumn": "Product",
"key": "MyProduct",
"labelColumn": "Label"
}
}