Can I change the Barcode128 encoding method?

304 views
Skip to first unread message

RUK195

unread,
Oct 5, 2018, 5:19:40 AM10/5/18
to XMPie Interest Group
Hi

I need to encode a value as Bar Code 128 in a specific format. I am aware that we can set the encoding type to be Code128 A, B or C, however I need to (within the same barcode) force the first 5 characters to be encoded as Code 128B, and the remainder of the bar code to be encoded using Code128C.

Some other software lets me switch the encoding type be inserting É for 'Code128A',  or Ê for 'Code128B' or Ë for 'Code128C' but when I try this the bar code fails as it says it does not support that character.

Any advice appreciated!

couch

unread,
Oct 5, 2018, 11:40:53 PM10/5/18
to XMPie Interest Group
From what I can find, you cannot encode accented characters with code128.
This website includes a table of all the characters that can be encoded with each of the A, B and C subtypes:

You will see from that webstie, that only certain characters can be used in each of the subtypes (A/B/C):
  • 128A (Code Set A) – ASCII characters 00 to 95 (0–9, A–Z and control codes), special characters, and FNC 1–4
  • 128B (Code Set B) – ASCII characters 32 to 127 (0–9, A–Z, a–z), special characters, and FNC 1–4
  • 128C (Code Set C) – 00–99 (encodes two digits with a single code point) and FNC1
From what I understand, when you select Code128, XMPie automatically chooses the correct subtype based on the data you are entering into the barcode. However, you can choose specific subtype by specifying Code128A, Code128B or Code128C in the XMPie barcode function.

RUK195

unread,
Oct 8, 2018, 4:25:19 AM10/8/18
to XMPie Interest Group
Thank you, I understand this however the functionality I need is to to be able to control the subset for my specific requirements - I need to be able to switch the encoding type mid-way through the barcode. For instance Neodynamic Barcode Professional lets me control when the subtype switches from one type to another. Still looking for a solution but no luck yet...

couch

unread,
Oct 8, 2018, 4:49:38 PM10/8/18
to XMPie Interest Group
AFAIK what you want is not possible. If your other product can do it, you could have it create the barcode as a jpg or some other image format, and then use the images as assets in XMPie.

Igor

unread,
Oct 10, 2018, 9:31:30 AM10/10/18
to XMPie Interest Group
XMPie is using third party to generate barcodes , in the uPlan documentation you will see reference to the library document


Based on what I see you will need to use Format property described in 4.6 chapter 

So something like :
XMPBarcode("Code128", "some_data", "Format=C#####B&") 

(A … Switch to Subset A)

B … Switch to Subset B

C … Switch to Subset C

# … Character in the data (##### … first 5 characters)

& … All other characters (till the end)


Now I did not tried it so please let me know if this is working .

Igor.

Igor

unread,
Oct 10, 2018, 9:32:03 AM10/10/18
to XMPie Interest Group
XMPie is using third party to generate barcodes , in the uPlan documentation you will see reference to the library document


Based on what I see you will need to use Format property described in 4.6 chapter 

So something like :
XMPBarcode("Code128", "some_data", "Format=C#####B&") 

(A … Switch to Subset A)

B … Switch to Subset B

C … Switch to Subset C

# … Character in the data (##### … first 5 characters)

& … All other characters (till the end)


Now I did not tried it so please let me know if this is working .

Igor.






On Monday, October 8, 2018 at 4:49:38 PM UTC-4, couch wrote:
Reply all
Reply to author
Forward
0 new messages