CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 7 of 7

Thread: Barcode Font

  1. #1
    Join Date
    Oct 2011
    Posts
    2

    Barcode Font

    Hello Guys,

    I am new to Crystal Reports. I am trying to render a bar-code on the report. The text for the bar-code is basically a file address location. It is looking fine but, when we scan the bar-code the "\" are missing. The barcode font I am using is "3 to 9 Barcode".
    For example the actual text (file location) is : "z:\1\1\1\1\1\32.dst". The text after scanning is coming out as - "z1111132.dst". Can anybody help me with this. Any help greatly appreciated. Thanks.

  2. #2
    Join Date
    Jul 2005
    Posts
    1,083

    Re: Barcode Font

    Welcome to CodeGuru forums!
    I remember that some ascii characteres need to be encoded, and the character \ is encoded as %L

    Also
    The next url could be helpful --> http://en.wikipedia.org/wiki/Code_39
    JG


    ... If your problem is fixed don't forget to mark your threads as resolved using the Thread Tools menu ...

  3. #3
    Join Date
    Jul 2008
    Location
    WV
    Posts
    5,362

    Re: Barcode Font

    \ is not a valid character in code 3 of 9 nor is :


    http://en.wikipedia.org/wiki/Code_39

    Edit to add: You could use code 128 to get the result you want as it supports both \ and : characters

    http://en.wikipedia.org/wiki/Code_128
    Last edited by DataMiser; October 10th, 2011 at 09:13 PM.
    Always use [code][/code] tags when posting code.

  4. #4
    Join Date
    Oct 2011
    Posts
    2

    Re: Barcode Font

    Thanks guys. But can you suggest how to code it.

    When is use Code39 and code it as : "*Z/Z%L1%L1%L1%L1%L1%L3.DST*" the scanned text is coming out as : z/z5l15l15l15l15l15l3.dst

    And When I am using Code128Wide font and code it as "Z:\1\1\1\1\1\3.DST", I am not able to scan the barcode.

    Please help.

  5. #5
    Join Date
    Jul 2008
    Location
    WV
    Posts
    5,362

    Re: Barcode Font

    Code 3 of 9 does not support \ characters so you can not do it with code 3 of 9

    Code 128 requires a check digit added to the end, if you are using a font then you will need to calculate the proper check digit and append it to the end of your barcode data.
    Always use [code][/code] tags when posting code.

  6. #6
    Join Date
    Jul 2005
    Posts
    1,083

    Re: Barcode Font

    Try with the next ---> http://www.barcodesinc.com/free-barcode-font/
    It will download barcode 3-9 fonts (standard and extended (this support full ascii codes))
    JG


    ... If your problem is fixed don't forget to mark your threads as resolved using the Thread Tools menu ...

  7. #7
    Join Date
    Jul 2008
    Location
    WV
    Posts
    5,362

    Re: Barcode Font

    As I said 3 of 9 does not support \ nor : characters there are exactly 39 valid characters in a code 3 of 9 barcode and those are not in the list. See the link in my previous post for all valid characters which can be coded in a 3 of 9 barcode.

    Code 128 supports the characters required, 3 of 9 does not.
    Always use [code][/code] tags when posting code.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured