printingtscprinter-control-languagebarcode-printing

TSC TSPL TSPL2 Printer Programming


I'm wondering if there's a function, or at least the best way, to print on a 3 labels (column) per row paper such as this:

I'm asking because on the provided label design software (that came with the printer) I can input column count (along with paper & label size), and everything will print correctly.

While on TSPL's docs, I can't find anything on setup functions to input column count or paper size. Only label size which must be set up to cover the whole 3 column or it'll only print on the center label.

What I have in mind is to manually adjust the position before each output, placing them on the correct columns. I'm wondering if this is the best approach or not.

Thanks!


Solution

  • The easiest solution for such label printers is to use a .PRN (raw printer output) and modify it accordingly.

    For a 3 labels per row, the easy solution would be to have all the elements replicated in the PRN 3 times and change the X coordinates for each element. Obviously, all the vertical commands (feed, gap, home) would remain the same as for a single label.

    This solution works for any environment that supports copying a file to the printer.