Spire.Barcode is a professional barcode library specially designed for .NET developers (C#, VB.NET, ASP.NET, .NET Core) and Java developers (J2SE and J2EE) to generate, read and scan 1D & 2D barcodes.

Tue Apr 10, 2018 4:45 pm

Consider the following data strings when generating an Code128 barcode...
"(01)105854000000(10)20180410P091"
"(01)105854000000(10)20180410P092"
"(01)105854000000(10)20180410P093"

The first and last generate correctly and without issue. However, the middle code generates an error:
{"Unable to calculate checksum for ᜉ."}

Stack Trace:
at sprក.ᜁ(String A_0, Int32 A_1)
at sprក.ᜄ(String A_0)
at sprក.ᜀ(String A_0, Boolean A_1)
at sprក.ᜀ(String A_0)
at sprᡅ.ᜅ()
at sprᡅ.ᜒ()
at sprᡅ.᜗()
at sprb.ᜐ()
at Spire.Barcode.BarCodeGenerator.GenerateImage()
...


The code looks like this...

Code: Select all
var codesString = "(01)105854000000(10)20180410P092";
barsetting.Data = codeString;
BarCodeGenerator bargenerator = new BarCodeGenerator(barsetting);
Image barcodeimage = bargenerator.GenerateImage();


Oddly, changing any digit in the codeString does not generate an error but that particular string does.

Other codes do generate this error as well though, including this one, "(01)10055742357513(10)20180313P048"

stevenaburton
 
Posts: 6
Joined: Sun Apr 01, 2018 5:34 pm

Wed Apr 11, 2018 2:36 am

Hello,

Thank you for contacting us.
After testing with our latest Spire.BarCode for .NET Version:2.3, I was unable to reproduce your issue. Both of the strings("(01)105854000000(10)20180410P092" "(01)10055742357513(10)20180313P048") worked well on my side. To help us further investigate your issue, please share us with your OS information as well as region and language setting, e.g. Windows 7 64-bit, China Chinese. A simple project which can reproduce this problem will be better.

Sincerely,
Nina
E-iceblue support team
User avatar

Nina.Tang
 
Posts: 1195
Joined: Tue Sep 27, 2016 1:06 am

Sat Apr 14, 2018 12:33 am

Upgrading to V2.3 as you suggested cleared the problem but invalidated our license code such that the eval message has reappeared.

stevenaburton
 
Posts: 6
Joined: Sun Apr 01, 2018 5:34 pm

Mon Apr 16, 2018 2:36 am

Dear Steven,

We have not found your purchase record, you should be using our Free Spire.Barcode with a key, right? Please note that the Spire.BarCode for .NET Version:2.3 I provided in previous post is our paid version, which will produce the evaluation message and watermark without applying a purchased license. For you case, you could continue to use the free version ( Free Spire.BarCode for .NET Version:2.3 ) with your key, since I can confirm your issue doesn't exist in latest free version as well. Please have a try. If there is any question, welcome to write back.

Sincerely,
Nina
E-iceblue support team
User avatar

Nina.Tang
 
Posts: 1195
Joined: Tue Sep 27, 2016 1:06 am

Mon Apr 16, 2018 5:28 pm

No, I guess we were an early adopter as you gave us a commercial key in exchange for promoting you through our social media accounts.

stevenaburton
 
Posts: 6
Joined: Sun Apr 01, 2018 5:34 pm

Tue Apr 17, 2018 2:12 am

Hi Steven,

Thanks for your information.
Your key is only valid for our Free Spire.Barcode, and the Free Spire.BarCode for .NET Version:2.3 can fix your issue. Did you try this version? Thanks in advance for your valuable feedback.

Sincerely,
Nina
E-iceblue support team
User avatar

Nina.Tang
 
Posts: 1195
Joined: Tue Sep 27, 2016 1:06 am

Fri Apr 20, 2018 8:47 am

Dear Steven,

Hope you are doing well.
Did you test the free Spire.Barcode I mentioned? How is your issue going?
Thanks in advance for your valuable feedback.

Sincerely,
Nina
E-iceblue support team
User avatar

Nina.Tang
 
Posts: 1195
Joined: Tue Sep 27, 2016 1:06 am

Return to Spire.BarCode