Use case
Event labels: wristbands, badges and tickets
An event label identifies one person or one item for a few hours or a few days: a wrist ticket, a visitor badge, a name tag, a thermal ticket with a QR code, a coat-check or luggage tag. It is printed on demand, at a desk, when the person arrives. This page covers the barcodes they typically carry, the data behind them and how they reach a desk printer. No standard defines these labels: they are practice, so the event decides what is on them.
The label at a glance
The numbers in the drawing match the list. Sample data is made up.
- Event and dateThe event name and the day, as text.
- HolderThe name in large type, so it reads across a table, and the organization under it.
- QR codeA 2D symbol that a gate scanner reads. It can carry the ticket number or a reference to the record in your own system.
- Ticket type and accessWhat the ticket allows and where, as text.
- Linear barcodeThe ticket number as Code 128, with the same text under the bars.
What is printed, and why
Wrist tickets are long, narrow labels worn on the wrist. Visitor badges and name tags carry a name, an organization and a barcode. A thermal ticket carries a QR code that a gate scans. Coat-check and luggage tags come in pairs: one goes on the item, one to the owner, and both carry the same number.
They are printed at a desk when the person arrives, from a record in the ticketing or visitor system, so nobody knows in advance how many will be needed. No standard governs these labels: the event, the venue and the ticketing system decide the layout.
Which barcodes, and why
| Barcode | Why it is on the label | Edition |
|---|---|---|
| QR Code | A 2D symbol holds more data in a small area and carries error correction. It can carry text, such as the ticket number or a reference to the record in your own system. | Ultimate |
| Code 128 | A linear barcode for a ticket, badge or tag number. Code 128 holds letters and digits in one line of bars, and the site's symbology table pairs it with data that has no GS1 structure. | Basic |
The gate scanners decide what they can read, so check which symbologies yours accept before you choose.
Names carry accents. In some 2D symbols an ECI prefix declares the character set, such as UTF-8, so the reader decodes accented text correctly, and BarcoderX lets you set one where the symbology allows it.
BarcoderX enforces quiet zones, snaps the module width to whole dots and reports the effective size. Symbol options
The data that fills it
| Field | Sample value | Where it goes |
|---|---|---|
| Event and day | Example Summit, Day 1 | Text, element 1. |
| Holder name and organization | Alex Example, Example Logistics Inc. | Large text, element 2. Accented letters need the right font and character set. |
| Ticket type and access | General, Gate 3 | Text, element 4. |
| Ticket number | TK-0061847 | The barcode, element 5, with the text under it. The QR code, element 3, can carry the same number. |
| Coat-check tag number | CC-0392 | Large text and a barcode on both halves of the pair. |
The values come from your ticketing or visitor system: the attendee list, the ticket types and the check-in. When someone is checked in, your system prints their label.
The values come from objects, a DataTable, CSV, JSON or XML. Counters, masks and more than 100 built-in functions produce the values that change on every label. Templates and data
BarcoderX ships one font family covering Basic Latin, Latin-1 and Latin Extended-A, which includes Spanish accents and punctuation. Fonts and accents
Why generate it from code
A desk serves one person at a time, and a wrong name on a badge is seen by everyone. Printing from code takes the name from the record, so nobody retypes it. The desk runs a web page or an app; its print button sends the job to your server, and the print agent beside the printer delivers it. That route works from any device with a browser, phones and tablets included.
How it reaches the printer
The printer commands are the same on both routes, and both run on infrastructure you operate.
- Direct, from your application. The SDK packages send the printer commands from your own .NET process over TCP port 9100, serial, the Windows spooler, CUPS or USB. No API server and no agent is in the path.
- Through your API server. Your application queues a print job through the REST API on your API server. A print agent on the printer's network collects it and writes it to the printer beside it. The agent only dials out, so the printer network needs no inbound port.
A desk with its own computer can print directly. A tablet at a reception table uses the API-server route.
Delivery to the agent is at-least-once and the agent de-duplicates by job id, so a reconnect does not print a label twice. Print jobs honor an idempotency key, so a retried request does not queue a second label.
A wrist ticket, a badge and a ticket are different sizes. A template's size is set in millimeters, inches or dots, at any resolution from 96 to 1,200 dpi. In ZPL, ^PW and ^LL set the width and the length in dots.
Stock is your choice. That includes the wristband, badge, ticket and tag stock, and the printer that takes it. Direct thermal media darkens under the heat of the print head and the print fades with heat, light and age; thermal transfer melts ink from a ribbon and lasts longer (see direct thermal and thermal transfer). In ZPL, ^MT tells the printer which one is loaded. On a thermal printer each dot is printed or left blank, with no gray, so a thermal ticket prints in one color on its stock and a photo is converted by threshold or dithering. Color and non-thermal printers print through graphic mode instead, and PNG and PDF exports can carry color.
Which edition covers it
EditionsBasic covers the linear (1D) and postal symbologies, including every GS1 DataBar variant; Ultimate adds the PDF417 family, other multi-row symbologies, every matrix (2D) symbology and GS1 composites, as set out on the pricing page.
For event labels, that means Code 128 is in Basic. A QR Code is a matrix (2D) symbology and needs Ultimate. If your gate scanners read Code 128, a ticket can carry it in Basic.
The ZPL behind it
Printer commands a label like this can use. Each page explains one command in our own words.
^BQ- Prints a QR Code barcode.
^BC- Prints a Code 128 barcode.
^BY- Sets the module width of the barcodes that follow.
^FB- Turns text into a block that wraps.
^CI- Selects the international character set or text encoding used for printing.
^PW- Sets the print width of the label in dots.
^LL- Sets the label length in dots.
What BarcoderX does not do here
BarcoderX does not read barcodes, so it does not scan tickets. Validating a ticket, refusing a second entry and counting people in are your ticketing system and your scanners. Your label data stays in your systems, and BarcoderX does not operate a service that it passes through, so it does not sell tickets or hold attendee lists.
Keep reading
Print thermal labels from a web app: four ways ZPL 2D codes: QR Code, Data Matrix, PDF417 Fonts and accents Templates and data Print agent: pairing, connection and jobs Returns and RMA labels Patient wristbands: what they carry and how they print Baggage and luggage tags with a barcode Use cases Pricing: what each edition coversNew to the printer language? Read the ZPL guides and command reference.
Sources What this page says about BarcoderX comes from its published barcodes, pricing, printing, templates and data, fonts and accents, FAQ, glossary and web-app printing pages. The description of event labels is general and ours; no standard is cited because none defines these labels.
Written by BarcoderX in its own words.
ZPL and ZPL II are trademarks of Zebra Technologies Corporation. BarcoderX is an independent product and is not affiliated with, endorsed by or sponsored by Zebra Technologies.