This project has moved and is read-only. For the latest updates, please go here.

Code 128B

Jun 2, 2013 at 11:16 AM
Is it possibile generate a 128B code?
Jun 2, 2013 at 10:23 PM
Do you mean Code 128 with codeset B?
The codeset is automatically selected. If the value, which should be encoded, contains only digits, then the codeset C will be used, otherwise B.
Jun 3, 2013 at 7:20 PM
Edited Jun 3, 2013 at 7:21 PM
Ok.... but it is possible to force at codeset B with a value that contains only digits?
Jun 3, 2013 at 7:45 PM
Not at the moment. It needs some modification at the sources.
What is your use case for such a requirement? Why can't you use codeset C?
Jun 3, 2013 at 8:08 PM
the customer use barcode with codeset B on his sales recipient.
I am working on the mobile app that have to generate the same kind of barcode so I can not use the codeset C.
Jun 6, 2013 at 6:48 AM
Ok, I understand. I will look into it and I think I can implement an encoding hint which gives you the ability to set a fixed codeset.
Jun 6, 2013 at 8:13 AM
thanks a lot.
Jun 10, 2013 at 10:20 PM
Revision 86461 implements a new encoding hint which gives you the ability to force the use of codeset B for Code128.
Use EncodeHintType.CODE128_FORCE_CODESET_B or better use the class ZXing.OneD.Code128EncodingOptions with the BarcodeWriter.
Set the hint or the property "ForceCodesetB" to true.
Jun 11, 2013 at 6:17 PM
This revision is perfect for my aim :)…thanks!!!
Have you in mind to build the package on nuget?
Jun 11, 2013 at 6:27 PM
Like every previous version will the next release be available on nuget. Next release will include this changes, too.