Problem with ean128() method

Need assistance with programming Font Tools? Post here.

Problem with ean128() method

Postby tsylvai on Mon May 26, 2008 5:53 am

Hello,
i use morovia EAN128 , but i have a problem the ean128() function in api return code128 (cruflMorovia.dll) , where i can find the true ean128 method. I want ean128 on 13 digits.

Thank you. :?: :shock:
tsylvai
 
Posts: 1
Joined: Mon May 26, 2008 5:27 am

Re: Problem with ean128() method

Postby administrator on Mon May 26, 2008 8:33 am

13-digit EAN-128 is usually called SCC-14. It has an AI=01, and human readable format as
Code: Select all
(01)XXXXXXXXXXXXXX


If you do not want to calculate the 14th check digit, you should use SCC14 function instead. The SCC14 function calculates the check digit for you.

If you use EAN128(), you need pass 16 digits as the input, including leading 01 and the last check digit, such as
Code: Select all
(01)19421123450011


Note that you won't get the correct human readable in this case because thte parentheses are not encoded into barcode. You can format the barcode with a non-human-readable font (such as MRV Code128XS, S, M, T and XT), and put a text box below the barcode to hold the human readable text.
User avatar
administrator
Site Admin
 
Posts: 6
Joined: Sat May 10, 2008 9:01 pm

Re: Problem with ean128() method

Postby glitch on Mon May 26, 2008 9:45 am

This page (http://www.morovia.com/education/utility/upc-ean.asp) describes how to calculate SCC-14 check digit.
The information above is provided "AS IS", with no warranties, and confers no rights.
User avatar
glitch
Support Engineer
 
Posts: 196
Joined: Wed May 14, 2008 2:42 pm

Re: Problem with ean128() method

Postby cvaz on Fri May 30, 2008 5:05 am

Hello,
I would like to use too the API.
But if I have understood well, Morovia (cruflMorovia.dll) does not purpose a function which return a barcode EAN128 on 13 digits.
I tried the SCC14() function but it is worse than the EAN128Ex() function wich return a barcode on 14 digits (add a 0 at the end). In effect, the SCC14 return a barcode EAN128 on 16 digits (add '01' before and check digit behind) !
Thanks for your help.
cvaz
 
Posts: 3
Joined: Thu May 29, 2008 5:21 am

Re: Problem with ean128() method

Postby glitch on Fri May 30, 2008 8:36 am

cvaz,

I suggest that you read this article first: http://www.morovia.com/education/symbology/scc-14.asp

A SCC-14 number is coded either in Interleaved 2 of 5(ITF25), or EAN-128. The data itself is 14 digits (13 + 1 checksum). If you are coding it in EAN0128, AI 01 must be added at the beginning (as well as an invisible FNC1 character) per UCC/EAN-128 requirement. When you scan the barcode, you get 16 digits in total (if your scanner is configurated to recognized FNC1, you will find the result as FNC1+01+14 digits)

On the other side, if the number is coded in ITF25, the barcode only has 14 digits encoded.
The information above is provided "AS IS", with no warranties, and confers no rights.
User avatar
glitch
Support Engineer
 
Posts: 196
Joined: Wed May 14, 2008 2:42 pm

Re: Problem with ean128() method

Postby cvaz on Mon Jun 02, 2008 4:44 am

Hello,
Thank you for your precious reply, but I can't use any function from my DLL (CrufMorovia) wich I bought 3 years ago. I need a function wich take my digit value and convert it on a barcode EAN128 on 13 digits, not on 14, not on 16, ... I don't want to require to modify the code of an existing function on override it into my C#.NET application program.
Is there any simply method to change the string returning by the EAN128Ex() or SCC14() or another function to obtain only 13 digits ?
cvaz
 
Posts: 3
Joined: Thu May 29, 2008 5:21 am

Re: Problem with ean128() method

Postby glitch on Mon Jun 02, 2008 8:29 am

cvaz,

Are you saying that you wanted a function that returns a barcode string that has only 13-digit encoded? If that is the case, the barcode created will not conform to EAN-128 standard. Therefore, you can not use EAN128Ex/SCC-14 function to create such a barcode.

If you just want a code128 barcode with a 13-digit number encoded, use function Code128Ex.
The information above is provided "AS IS", with no warranties, and confers no rights.
User avatar
glitch
Support Engineer
 
Posts: 196
Joined: Wed May 14, 2008 2:42 pm

Re: Problem with ean128() method

Postby cvaz on Tue Jun 10, 2008 5:59 am

glitch,

So why a concurrent of Morovia purpose it ?
Go and See http://www.barcode????.com
You will see that the Barcode Symbology: UCC/EAN-128 with Font Facename: Code128M, generate an output barcode EAN128 on 13 digits without any problem.
Maybe Morovia offer the same product with an other name. No ?
Thank you.
cvaz
Last edited by glitch on Tue Jun 10, 2008 2:36 pm, edited 3 times in total.
Reason: masked competitor's link
cvaz
 
Posts: 3
Joined: Thu May 29, 2008 5:21 am

Re: Problem with ean128() method

Postby glitch on Tue Jun 10, 2008 9:07 am

cvaz,

First we are not affiliated with the link in your post.

Secondly, as I indicated in the last post, you can create a Code128 barcode that encodes 13 digits using Code128Ex function. This barcode will give you 13 digits when read by a scanner (that is what you expected). If you have control over reading/writing, I do not see any problems with this approach.

However, this is not a UCC/EAN-128 barcode. In a UCC/EAN barcode, every piece of data is prefixed with a number called AI to tell what kind of data follow. In the case of SCC-14, the prefix assigned is 01. Another thing is that a SCC-14 number requires a checksum itself to a total of 14 digits. You can not just create a barcode of 13 digits and call it SCC-14.

Again, you might want to review this article: http://www.morovia.com/education/symbology/scc-14.asp.
The information above is provided "AS IS", with no warranties, and confers no rights.
User avatar
glitch
Support Engineer
 
Posts: 196
Joined: Wed May 14, 2008 2:42 pm

Re: Problem with ean128() method

Postby glitch on Tue Jun 10, 2008 9:11 am

The images below are standard barcode representations of a SCC-14 number.
Image
The information above is provided "AS IS", with no warranties, and confers no rights.
User avatar
glitch
Support Engineer
 
Posts: 196
Joined: Wed May 14, 2008 2:42 pm


Return to Font Tools API

Who is online

Users browsing this forum: No registered users and 0 guests