Skip to main content

Print job

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.

All parameters are optional, but there needs to be one to specify the label, i.e. labelName, labelColumn or labelData. If any of the table parameters is used, then tableName, keyColumn and key must all be set.

ParameterTypeDescription
alignmentstringAlignment of the label within targetLength: START, CENTER, or END.
autoPrintGapdistanceAuto-print gap. A plain number is interpreted as nanometers.
autoPrintIntervaldistanceAuto-print interval. A plain number is interpreted as nanometers.
checkpointbooleanSee the seekPrintQueueCheckpoint API method.
copiesnumberLimit the number of copies to print. Default is unlimited.
copiesColumnstringTable column where the number of copies to print is available.
descriptionstringDescription which will be displayed on the Overview tab in the user inteface.
firstRownumberFirst table row index to use when selecting with tableName and labelName. Defaults to 0.
freezebooleanIf true, then the label will be frozen, i.e. the current label content, as well as all dynamic text, will be copies and unaffected by any changes. It will also cause all used counters to increment immediately. The default value is the value of the queue parameter.
hAlignstringAlong-web alignment of the label within targetLength, taking precedence over alignment when set: LEFT, CENTER, or RIGHT. LEFT/RIGHT map to START/END according to the print direction. v5.0
hOffsetdistanceShifts the print along the web. A plain number is interpreted as millimeters. A positive value always moves the print to the right regardless of the print direction. Applied only when targetLength is set, and clamped so the net change to position is never negative. v5.0
keystringValue to search for in the keyColumn of the table.
keyColumnstringColumn in which to search to select the row to use.
labelNamestringThe name of a label.
labelDataLabelA complete label object.
labelColumnstringTable column where the label name is available.
printDelaydistancePer-job print delay override. A plain number is interpreted as millimeters. v4.5
printedColumnstringTable column where to number of printed labels is stored. The value in this column will be incremented when printing.
queuebooleanIf true, then the label will be added to the end of the queue of jobs, else it will replace any existing queue with this job.
rowCountnumberNumber of table rows to use when selecting with tableName and labelName. Defaults to all remaining rows from firstRow.
repeatPrintGapdistanceRepeat print gap. A plain number is interpreted as nanometers.
repeatPrintIntervaldistanceRepeat print interval. A plain number is interpreted as nanometers.
roundRobinbooleanIf set, then the print job will be moved to the back of the queue when completed.
stepCountersbooleanIf true, step counters when the job is frozen. Default is true.
tableNamestringThe name of a table.
targetHeightdistanceTarget print height across the web. A plain number is interpreted as millimeters. Used together with vAlign. v5.0
targetLengthdistanceTarget print length. A plain number is interpreted as millimeters. Used together with alignment. v4.5
vAlignstringCross-web alignment of the label within targetHeight: TOP, CENTER, or BOTTOM. Defaults to BOTTOM, which matches the zero-offset position. v5.0

Auto-print

Auto-print is a feature that automatically triggers a job after the previous job is completed, and the configured gap/interval has elapsed.

tip

In v4.2.0 through v4.3.x, if there were no other print jobs waiting in the queue, the job was automatically printed once the configured gap/interval had elapsed. Since v4.4.0 this is no longer the case: if the queue is empty, the auto-print parameters are ignored.

Examples

Deselect all print jobs (clearing the queue):

{}

Select a single label "MyLabel":

{"labelName": "MyLabel"}

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

{
"labelName": "MyLabel",
"copies": 1,
"queue": true
}

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

{
"tableName": "MyTable",
"keyColumn": "Product",
"key": "MyProduct",
"labelColumn": "Label"
}