IMPORTANT ANNOUNCEMENT

These forums were permanently set to read-only mode on July 20, 2022. From that day onwards, no new posting or comment is allowed on the site, but the historical content remains intact and searchable.

A new location for posting questions about PlanetPress Suite is now available:

OL Learn - PlanetPress Classic (opens in new tab)

Topic Options
#57530 - 06/30/20 09:37 AM Barcode 128 Subset B & Subset C into 1 Barcode
Amandac Offline
OL Newbie

Registered: 06/25/20
Posts: 1
I have these instructions for a barcode

SUBSET C FEATURE OF CODE 128
To optimize the length of the barcode for printing use the Subset C feature of Code 128 to
automatically ‘compress’ the long strings of numerical characters.
Some printers and barcode fonts require the user to pass encoded information to the application.
The actual values are specific for each printer or font. A general illustration is presented below.


The data format before printing is:
Start Code 128 Subset B 1ABC Shift to Subset C 123456789012345678901234 EndCode128

I created the first 4 digits using the barcode128 subset b for my first 4 characters and then selected the last remaining characters in a new barcode128 subset C then I snapped them together using snapping points.

This is not scannable.

So then I tried presstalk using this:

showbarcodecode128(&barcodeb,1,12,false)
rmoveto(0,-1)
showbarcodecode128(&barcodec,2,12,false)

The barcode has the same look of the original barcode I made but when outputting to a pdf the barcode doesn't even look the same then what is viewed.

The question is how do I use 2 different subsets into one barcode.

This is the string in my data:
2LAY511123456701000010600105

2LAY (Subset B)
remaining characters (Subset C)


Edited by Amandac (06/30/20 09:51 AM)

Top
#57569 - 07/13/20 02:04 PM Re: Barcode 128 Subset B & Subset C into 1 Barcode [Re: Amandac]
Philippe F. Offline
OL Expert

Registered: 09/06/00
Posts: 1984
Loc: Objectif Lune, Montreal, Qc
You can switch subsets in the middle of a EAN 128 barcode by inserting the appropriate control character in the data:
Code:
Start Subset A:  ^103
Start Subset B:  ^104
Start Subset C:  ^105


So with your example, the data would lokk like this:
Code:
^1042LAY^105511123456701000010600105

The above litterally means:
  • Switch immediately to subset B (^104)
  • Print these subset B characters (2LAY)
  • Switch to subset C (^105)
  • Print these subset C characters (511123456701000010600105)



Edited by Philippe F. (07/13/20 02:07 PM)
_________________________
Technical Product Manager
I don't want to achieve immortality through my work; I want to achieve immortality through not dying - Woody Allen

Top