← All posts

2026-08-28

Automate Label Printing from Excel: Save Time and Reduce Errors

Automate Label Printing from Excel: Save Time and Reduce Errors
pdf labels barcodes label merge browser based graphical layout editor google sheets addin microsoft excel addon electronic shelf labels esl

Automate Label Printing from Excel: Save Time and Reduce Errors

If you are still copying SKUs, descriptions, barcodes, and batch numbers from an Excel sheet into a label designer, you already know where the errors come from. A missing leading zero on a barcode, a transposed digit in a lot number, or a row skipped during a late-afternoon print run becomes a reprint, a return, or a compliance issue.

RSJ LPSNG — the Next Generation Label Printing System — treats Excel as a first-class data source. You design the label once, map the spreadsheet columns to label fields once, and then every print run follows the same path: data in, rendered labels out.

The Manual Label Printing Bottleneck

Manual Excel-to-label workflows tend to break in predictable ways.

A typical process looks like this: open the spreadsheet, find the next row, copy the SKU, switch to the label software, paste the SKU, repeat for description, barcode, price, and expiration date, then print one label. If the order has 200 line items, that is 200 chances to paste the wrong value.

The most common problems are:

  • Time consumption: repetitive copy-paste work does not scale when batch sizes grow.
  • Typos and formatting changes: Excel may drop leading zeros, convert long numeric barcodes to scientific notation, or trim spaces that matter.
  • Inconsistent label output: manual edits produce labels that look slightly different depending on who produced them.
  • No reliable audit trail: it is difficult to know which spreadsheet row produced which printed label.

Automation removes the repeated manual step. Instead of copying data into the label, the label system reads the spreadsheet row and fills the template. RSJ LPSNG supports exactly this workflow through its Excel interface, web service API, and command-line player.

One-Time Setup: Connect Excel to Your Label Workflow

The setup work happens once. After that, the same configuration can be reused for daily printing, warehouse batches, fulfillment runs, or electronic shelf label updates.

Prepare the Excel file as a data source

Use the first row of your sheet for field names. Each following row is one label record.

A simple sheet might look like this:

sku,description,barcode,price
1001,Screwdriver M3,4006381333931,4.99
1002,Cable tie 200mm,4006381333948,0.19
1003,Hex key set,4006381333955,12.50

Keep the structure flat. Avoid merged cells, title rows above the header row, and multiple tables on one sheet. The cleaner the source data, the fewer runtime failures you will need to handle later.

Create and map the label template

In the LPSNG label studio, design the label layout once. Add text fields, barcode fields, and any static elements such as logos, borders, or compliance marks.

Then map the spreadsheet columns to those fields. The sku column becomes the SKU field, the barcode column becomes the barcode field, and so on. The Excel Interface allows Excel files to be used both as data files and as lookup files, so you can also enrich your labels with values from a second workbook without manually copying data between sheets.

After the mapping is saved, the template knows where every value should come from. New rows in the spreadsheet no longer require redesigning the label.

The Automated Pipeline: From Spreadsheet to Printed Label

Once the mapping exists, the workflow becomes a pipeline.

In its simplest form, it looks like this:

Excel file → LPSNG template + data → rendered label (PDF/PNG) → print or ESL update

There are several ways to run that pipeline, depending on how much automation you need.

Batch printing from the web UI

For occasional or medium-sized jobs, upload the Excel file in the LPSNG web UI and let the job queue process it. The interface uses the saved template mapping, renders the labels, and sends them to the selected printer. No manual data entry is involved.

Web service API for programmatic jobs

For integration with a WMS, ERP, shipping system, or internal script, use the Web Service API. The API uses an OAuth2 authentication model, so integrations exchange credentials for a token instead of embedding user passwords.

A Python integration might look like this:

import requests

def submit_label_job(data_file, template_id, token):
    """Submit an Excel data file to the LPSNG web service.

    The endpoint, payload schema, and OAuth2 flow are documented at:
    https://lpsng.rsj.de/en/webservice.md
    """
    response = requests.post(
        LPSNG_JOBS_ENDPOINT,
        headers={"Authorization": f"Bearer {token}"},
        json={
            "data_file": data_file,
            "template_id": template_id,
        },
        timeout=30,
    )
    response.raise_for_status()
    return response.json()

The exact endpoint and payload fields depend on your LPSNG deployment. The important point is that the API call replaces the manual copy-paste loop: one request can submit an entire spreadsheet worth of labels.

You can also use the API to select the target printer per job, which is useful when different warehouses or production lines need labels on different devices.

LPSNG Player for scripted batch processing

The LPSNG Player is a standalone command-line print engine. It accepts a package and data input and produces PDF, PNG, JSON, print jobs, or ESL output. That makes it a good fit for scheduled batch processing on a server or single-board computer without keeping a browser open.

A folder-watcher script could process new Excel files as they arrive:

#!/usr/bin/env bash
WATCH_DIR="./incoming"
DONE_DIR="./processed"
mkdir -p "$DONE_DIR"

while true; do
  for file in "$WATCH_DIR"/*.xlsx; do
    [ -e "$file" ] || continue
    echo "Processing $file"
    if submit_to_lpsng "$file"; then
      mv "$file" "$DONE_DIR/"
    else
      echo "Job failed; leaving $file for review" >&2
    fi
  done
  sleep 10
done

The submit_to_lpsng function is the only deployment-specific part. It can call the LPSNG Player or the web service API depending on your environment.

Google Sheets alternative

If your team uses Google Sheets rather than Excel, the Google Sheets Add-on provides a similar path: create label layouts and print labels directly from Sheets. The automation principle remains the same — the spreadsheet is the data source, and the label template stays fixed.

Monitoring and Failure Handling

Automation does not mean ignoring the process. A reliable pipeline needs visibility into what succeeded and what did not.

LPSNG provides a job queue in the web UI where you can see submitted jobs and their status. The web service API also exposes job status for programmatic monitoring. Instead of wondering whether a batch printed, you can check the queue or query the API.

Common failure scenarios include:

  • Missing data: a required column is empty for one or more rows.
  • Invalid field values: a barcode is too long, a date is formatted incorrectly, or a numeric field contains text.
  • Printer offline: the template and data are valid, but the target printer cannot accept the job.

When a job fails, LPSNG returns error messages that help identify the problem. For file-based automation, keep failed files in a separate directory for review instead of silently moving them into a processed folder. That one habit makes it much easier to find and retry only the bad rows or the offline-printer jobs.

Best Practices for Reliable Excel Label Automation

A small amount of upfront discipline prevents most production problems.

  • Keep Excel data clean: one header row, no merged cells, consistent data types, no empty rows inside the table.
  • Use Excel data validation: restrict columns such as barcode, country_code, or label_qty to valid values before the file ever reaches LPSNG.
  • Version your templates and data files: keep old versions so you can reproduce what a label looked like during a specific week or campaign.
  • Test with a small batch first: run three or five rows, inspect the output, then scale to the full production file.
  • Use the Field Script API for custom transformations: if you need to reformat a value, concatenate fields, or apply conditional logic, the Field Script API allows Python script blocks to modify field values before printing. For a deeper look at that workflow, see the Python label printing article.

FAQ: Automating Label Printing from Excel

Can I automatically print labels whenever I update my Excel file?

Yes. You can set up a workflow where LPSNG monitors a folder or use the web service API to trigger printing when new data is added. The LPSNG Player can also be scripted to watch for file changes and process them automatically.

Do I need to know programming to automate label printing from Excel?

No. The basic setup using the Excel Interface and label studio requires no coding. For more advanced automation, you can use the web service API or LPSNG Player, but simple batch printing can be done through the user interface.

What Excel formats are supported for label data?

LPSNG supports standard Excel files such as .xlsx and .xls as data sources. CSV files can also be used. The Excel Interface documentation provides details on how to structure your data.

Can I automate printing to different printers based on Excel data?

Yes. Using the web service API or LPSNG Player, you can specify the target printer per job. In the web UI, you can select printers manually, but for full automation the API allows dynamic printer selection based on your data.

Put Your Excel Labeling on Autopilot

The goal is not to remove Excel from your process. The goal is to remove the manual copy-paste step between Excel and the label printer. With a one-time template setup, RSJ LPSNG turns a spreadsheet into a repeatable label production system: row in, label out, every time.

If you are already running label workflows in the cloud or evaluating your options, see how LPSNG fits into a broader cloud label design setup in the Zebra Designer alternative article or compare editions in the pricing and plans overview.

Related posts

EU label: AI-generated content