We're experiencing a problem when generating GS1 Databar Expanded Stacked bar codes. In particular, if we have segments set to 6, the following bar code data results in an unscannable bar code:
[255]4330942000018147107162034[3912]978373
Further testing indicated the following pattern:
if (segments == 6 && (serialNumber.length + amount.length == 15))
then output garbage.
In this case, the serial number is 147107162034 and the amount is 373, and the resulting barcode scans as:
(255)4330942000018147107162034(3912)9783722003 instead of
(255)4330942000018147107162034(3912)978373
(see attachment)
Other barcode generators that we tried gave the correct result.
We were able to temporarily get around the problem by padding the amount with a leading zero (e.g. 0373) in the case where (serialNumber.length + amount.length == 15), but that may not be acceptable for all consumers of the bar code.
Hello Alex
Thanks for the bug report. I think i have found what is causing this issue. I'll do some more testing and once i'm satisfiied the issue is fixed i'll post the update.
Milton
Alex, I have now uploaded a code repository for ZintNet.
If you update your project with the repository file "BitstreamEncoded.cs" this will fix the issue.
At this stage I don't want to upload a new zip of the project as I'm currently updating the GDI demo program.
Let me know if you have any issues.
Milton
Thanks! I'll check it out.
Alex
From: Milton Neal [mailto:miltonneal@users.sf.net]
Sent: Friday, May 26, 2017 6:47 PM
To: [zintnet:tickets]
Subject: [zintnet:tickets] #1 GS1 Databar Expanded Stacked creating invalid bar code
Alex, I have now uploaded a code repository for ZintNet.
If you update your project with the repository file "BitstreamEncoded.cs" this will fix the issue.
At this stage I don't want to upload a new zip of the project as I'm currently updating the GDI demo program.
Let me know if you have any issues.
Milton
[tickets:#1]https://sourceforge.net/p/zintnet/tickets/1/ GS1 Databar Expanded Stacked creating invalid bar code
Status: open
Milestone: 1.0
Created: Wed May 24, 2017 02:26 PM UTC by Alex Smits
Last Updated: Thu May 25, 2017 12:49 PM UTC
Owner: nobody
Attachments:
We're experiencing a problem when generating GS1 Databar Expanded Stacked bar codes. In particular, if we have segments set to 6, the following bar code data results in an unscannable bar code:
[255]4330942000018147107162034[3912]978373
Further testing indicated the following pattern:
if (segments == 6 && (serialNumber.length + amount.length == 15))
then output garbage.
In this case, the serial number is 147107162034 and the amount is 373, and the resulting barcode scans as:
(255)4330942000018147107162034(3912)9783722003 instead of
(255)4330942000018147107162034(3912)978373
(see attachment)
Other barcode generators that we tried gave the correct result.
We were able to temporarily get around the problem by padding the amount with a leading zero (e.g. 0373) in the case where (serialNumber.length + amount.length == 15), but that may not be acceptable for all consumers of the bar code.
Sent from sourceforge.net because you indicated interest in https://sourceforge.net/p/zintnet/tickets/1/
To unsubscribe from further messages, please visit https://sourceforge.net/auth/subscriptions/