"(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"