Serial Numbers and Database Printing: A Thousand Unique Labels
A thousand labels, each with different c…
A thousand labels, each with different content, can't be done by hand. Batch printing offers two routes: serial numbers for rule-based increments, database connections for external data. Choosing correctly saves hours of repetition.
Decide which route you need
| Requirement | Use | Example |
|---|---|---|
| Sequential numbering | Serial number | 0001 through 1000 |
| Data from an external sheet | Database connection | Order numbers, customer names |
| Rule-based numbering with variables | Variable + serial number | PM-2026-0001 |
| Every label entirely different | Database connection | One record per asset |
The test: can you compute the next value as "previous + 1"? If yes, serial numbers. If not, a database.
Route one: serial number increments
Core settings
Place a text field on the template, then mark it as a serial number. Typical options:
| Setting | Purpose | Example |
|---|---|---|
| Start value | Where numbering begins | 1 or 1001 |
| Step | Increment per label | 1 (continuous) or 2 (skip) |
| Digits | Zero-padding width | 4 → 0001 |
| Prefix | Fixed leading text | PM- |
| Suffix | Fixed trailing text | -A |
That configuration yields PM-0001-A, PM-0002-A, and so on.

Sequentially numbered labels straight off the printer: consistent digit count, clean barcodes, only the serial changes. Skip the digit count and label 1 and label 10 end up different lengths.
Always set the digit count. Without it, label 1 reads 1 and label 10 reads 10 — inconsistent width, visually messy, and sometimes a problem for downstream readers.
Choosing a start value
Starting at 1 isn't always right. Consider:
- Continuing a previous run — last batch ended at 0580, start at 0581
- Monthly reset —
202611-0001, restarting each month - Batch isolation — separate ranges per batch to prevent collisions
Duplicate numbers are the worst batch printing error. Two labels sharing a number invalidates every traceability process built on top of it.
Reprinting a damaged label
You're at 0500 and label 0480 came out damaged.
Don't restart the run. Instead:
- Set the start value to 0480
- Print one label
- Set the start value back to 0501
Always test-print before a batch. Confirm position and content, then commit.
Route two: database batch printing
Preparing the data source
Excel is the usual choice. Requirements:
The first row must contain field names — not a title, not merged cells. The software maps template variables by field name.
No merged cells. They corrupt the read.
No hidden rows or active filters. Some software reads visible rows only, silently dropping data.
Format the ID column as text. Otherwise 001 becomes 1 and the leading zeros vanish. This is the single most common trap.
A well-formed source looks like this:
| ID | Product | Batch | Date |
|---|---|---|---|
| 0001 | Desktop printer | 202611A | 2026-11-16 |
| 0002 | RFID printer | 202611A | 2026-11-16 |
| 0003 | 600 dpi printer | 202611B | 2026-11-16 |
Connecting and mapping fields
Once connected, map each template variable to a data field.
The mapping must be one-to-one. Four variables against three columns leaves the fourth blank.
Preview a few records before printing. Field misalignment is the most common failure — if the ID column displays product names, you mapped the wrong column.
Selecting a print range
Don't print everything at once. Instead:
- Select the first three records, test print
- Check position, content and whether codes scan
- Only then run the full set
For 5,000 records, print in batches of 500–1,000. A failure in a single 5,000-label run is far harder to locate.
Variable sharing: one data source, several templates
A product sometimes needs two labels — an outer carton label and a unit label — with overlapping content.
Variable sharing lets multiple templates reference the same data source, so one edit propagates everywhere.
Useful for:
- Multiple label types for one production batch
- Primary and secondary labels printed together
- Shared customer details across templates
Caution: changing a shared variable affects every template referencing it. Confirm the blast radius first.
A complete batch workflow
Printing 500 product labels numbered 0001–0500 from an Excel sheet:
Step 1 — prepare the source. Build the sheet with a header row, ID column as text, 500 records filled.
Step 2 — build the template. Fixed content (company, product), variable fields (ID, batch, date), a QR code bound to the ID field.
Step 3 — connect the source. Link the Excel file, map variables to fields.
Step 4 — test three labels. Verify position, content and that the QR code scans to the correct ID.
Step 5 — run the batch. Two passes of 250, with a check between them.
Step 6 — verify. Spot-check the first, middle and last labels; confirm the sequence is continuous with no gaps.
Frequently asked questions
Serial numbers don't increment — every label is identical
The field isn't recognised as a serial number and is being treated as plain text.
Check that the field type is set to serial number. Some software requires this explicitly; the default is often text.
The database connects but labels print blank
Either no field mapping was performed, or the field names don't match the source.
Field names are case- and space-sensitive. ID and ID (trailing space) are different fields.
Leading zeros disappear — 0001 becomes 1
Excel treated the column as numeric.
Fix: set the column format to Text and re-enter the values, or prefix each with an apostrophe ('0001).
If the zeros are already lost, use a formula to restore them: TEXT(A2,"0000").
The run stopped halfway — how do I resume?
Note the last successfully printed number, set the start value to that number plus one, and continue.
Don't count labels. Damaged labels skipped during the run will throw your count off.
The QR code scans to the wrong value
Two possibilities:
The QR code is bound to the wrong field. Scan a preview and compare.
The code is too small or too faint. Longer content needs a larger symbol. Under 20 characters, 15 × 15 mm works; around 50 characters, use 25 × 25 mm or larger.
Batch printing is slow
Two limiting factors:
- Print speed setting — raise it in the driver, though too high degrades sharpness and positional accuracy
- Data processing — with many records, reading and rendering takes time
If data processing is the bottleneck, print in smaller batches.
The short version
Rule-based increments use serial numbers; external data uses a database. Test print before every batch, and always format the ID column as text.
Need a hand?
Tell us your batch size and data structure and we'll help you choose the right route.
Related guides
Need help choosing a printer?
Tell us your label size, print volume and environment — we will recommend the right model and settings.
Request a Quote