Skip to main content
Version: 2024 R1

Print a barcode label

This action allows you to print a label with a barcode.

Print a barcode label

1. Printer

Type of barcode label printer:

  • Main – the primary barcode printer, its name should be given in the format: \computer name\printer name,
  • Accounting – alternative, second barcode printer at the registration point.

2. Quantity

The quantity of labels to be printed. It can be defined with a dynamic value.

3. Encoding

The encoding system used to create the barcode. You can choose between ANSI and UTF-8.

4. Template

Barcode label appearance template. It can be created dynamically using Variables editor.

The following table contains a breakdown of the configuration package that is sent to the printer (in a fixed manner):

CodeMeaning
I8,B,001Code printing setting [8 data bits, Windows 1250 Latin 2, country code USA]
rYDouble buffering data
JF"Top-down" printing setting
WYEnabling the support of escaping Windows symbols (new line symbol "\n")
S1Setting speed to 1.5 ips (37 mm/s)
D14Setting the density/thickness to 14 (0 = invisible, 15 = darkest)
R24,0Setting the starting point to 24 points from left border and 0 from the top
ZBSetting the direction of image printing from the bottom
UNDisabling the error rapports błędach
q448Setting width to 448 points
Q468,21Setting length to 468 points, space between the labels
NClearing the image buffer
Example

Treść etykiety:
A30,10,0,1,1,1,N,"Author: John Smith
A30,36,0,1,1,1,N,"Data: YYYY-MM-DD"

Table below presents explanations of the commands:

CodeMeaning
30Number expressed in points from the left border
10The distance ("Y") from the upper margin. For each new line, a letter height value (1 = 12 points, 2 = 16, 3 = 20, 4 = 24, 5 = 48, respectively) and the distance between the lines are defined
0Rotation by 0 degrees stopni
1Font size (12 points)
1Font height multiplier
1Font width multiplier (corresponds to the width in pixels (points): 1 = 8 points, 2 = 10, 3 = 12, 4 = 14, 5 = 32, respectively)
NPrinting images in a normal way (they can also be reversed)

Configuration field (label height) is used to calculate if the printed text fits a single label. In case it exceeds the label, it is moved to the next one. The distance between stickers is added here as well.

The case with new lines is similar. A word is moved to a new line if the letter width sum is greater than the calculated value – 400 points from the left to the right margin by default.

5. Mode

Here you can set Synchronous or Asynchronous barcode printing mode.

6. Variables editor

Dynamically generated tree containing all variables that may be used in the current location of Designer Studio. Information on how to use variables in WEBCON BPS, as well as a list of variables can be found here.

info

Additional information on the action and its use is available on our technical blog in the articles: