Results 1 to 8 of 8

Thread: Arabic Words in Barcode Print

  1. #1

    Thread Starter
    New Member
    Join Date
    Jul 2020
    Posts
    9

    Arabic Words in Barcode Print

    Hello..

    In VB 6 we developed a inventory management software for Hypermarket.
    we print Barcode with arabic Item name (uni-code) using ZPL for Zebra Printer.
    it working fine. i used the code given below


    ^XA^LH0,0^LRN^CI0^XZ
    ^XA^CWZ,E:TT0003M_.FNT^FS^XZ
    ^XA
    ^LS0
    ^FO60,00^A0N,40,40^FDHYPER MARKET^FS
    ^FO10,60^A0N,20,35^FD3 STAR PORTABLE G PC^FS
    ^FO10,35^CI28^AZN,20,35^FD^FS
    ^BY2,3,45^FT300,81^BCI,,N,N^FD4690597142588^FS
    ^FO100,130^AZN,30,20^FD4690597142588^FS
    ^FO10,155^A0N,25,20^FDSR(Incl. VAT)^FS
    ^FO140,150^AZN,35,20^FDريال (متضمن للضريبة^FS
    ^FO10,180^A0N,55,35^FD71.00^FS
    ^FO180,175^AZN,60,85^FD٧١^FS
    ^PQ1
    ^XZ

    Now our client using 4BARCODE 4B-2054L PRinter.
    Above code is not working for this printer

    i designed a barcode using bartender software . in prn file i got the below code

    SIZE 75.4 mm, 31.9 mm
    GAP 3 mm, 0 mm
    SET RIBBON OFF
    DIRECTION 0,0
    REFERENCE 0,0
    OFFSET 0 mm
    SET PEEL OFF
    SET CUTTER OFF
    SET TEAR ON
    CLS
    BITMAP 189,11,33,32,1,џџџџџџџџџџџџџџџУёџџџїџџџџџџџџРџўџџџџџўџџџџџџЯрџџџуџџџџџџџџ ?џўџџџџџўџџџџџџ‡€Рџџёџџџџџџџў џќ?џџџџџќ?џџџџџџЧ‡џџџћџџџџџџџќџќџџџџџџќџџџџџџџџ?ŸџџџџџџїџџџџќŸџјџџџџџџјџџџџџџџў?џџџџџџуџџџџќџŸ џљџџџџџџљў?џџџџџў?џџџџџџрџџџџљџп€{ў  ў ќ€  >џџј  8 ў џп€;ќ | ќ >џ џ№  | џп 9ќ p ј > Р p џп 9ј 8 јр  p  8 џП>8љџјџјјјџЬ?уџ ?<рџуў?ЯЯјџљџП>xјџјџјјјџŸ?уџ ?рџуў?Яјџљџџ|јџЯџ€џќќёџžѓџ??˜ўџѓў?Яџ€џљџџјпџрџќsџœїџ?џџ€_їў?Р?џрљџџ€џќџџџјџўџ€џџџ?џ УџР?џў?РџјљџџРџ§џџџўџўџџџџџУџР?џў?сџџўјџџ№џџџџџџџџџџУџџџџџџџЧџџў?џџџџџјџџ§џџџЯџџџџџџџяџѓџџџџ џЧџџў?џџџџџјџџџџџџ‡џћџџџџџџџсџџџџџЧџџў?џџџћџјџџџџўЧџёџџџџџџџёџџџџџЧџџў?џџџёџјџџџџќ?яџ№џџџџџџџћџџџџџ ЧЯџў?џџџ№џјџџфџўџџћџџџџџуџџџџџџџЧУџў?џџџћџјџџрџџџџџџџџџџсџџџџџџџ‡чџў?џџџџџјџџіџџџџџџџџџџџѓџџџџџџџƒ џџў?џџџџџљџџџџџџџџџџџџџџџџџџџџџџџџўџџџџџћџџџџџџџџџџџџџџџџџџџџџџЧџџўџџџџџџџџџџџџџџџџџџџџџџџџџџџџџїџ џџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџ џџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџ
    BARCODE 436,197,"128M",102,0,180,3,6,"!10512345678"
    CODEPAGE 1254
    TEXT 382,87,"3",180,1,1,"12345678"
    TEXT 377,235,"3",180,1,1,"HYPER MARKET"
    TEXT 117,191,"3",270,1,1,"20.00"
    PRINT 1,1

    Arabic letters converted to bitmap....

    Please help us to solve this problem....

    Thanking you

  2. #2
    PowerPoster jdc2000's Avatar
    Join Date
    Oct 2001
    Location
    Idaho Falls, Idaho USA
    Posts
    2,211

    Re: Arabic Words in Barcode Print

    Does the bar code label actually print the Arabic characters correctly on the label?

    You are using a different printer make and model now, so you will need to use whatever formatting code or technique that the new printer requires, if it does not support the Zebra ZPL coding.

    If you are actually wanting the Arabic characters to appear in the .prn file, that is another matter entirely.

    More clarification on what the actual problem is and what you are actually wanting to achieve is needed for us to provide additional help.

  3. #3

    Thread Starter
    New Member
    Join Date
    Jul 2020
    Posts
    9

    Re: Arabic Words in Barcode Print

    Quote Originally Posted by jdc2000 View Post
    Does the bar code label actually print the Arabic characters correctly on the label?

    You are using a different printer make and model now, so you will need to use whatever formatting code or technique that the new printer requires, if it does not support the Zebra ZPL coding.

    If you are actually wanting the Arabic characters to appear in the .prn file, that is another matter entirely.

    More clarification on what the actual problem is and what you are actually wanting to achieve is needed for us to provide additional help.
    Thank you for your reply

    Zebra ZPL Coding is not support this printer. it supports TSPL Coding .
    In Bartender it prints arabic name with barcode .
    passing through vb6 code it not working..
    in bartender they are converting arabic to bitmap

    SIZE 88.1 mm, 50.8 mm
    GAP 3 mm, 0 mm
    SET RIBBON OFF
    DIRECTION 0,0
    REFERENCE 0,0
    OFFSET 0 mm
    SET PEEL OFF
    SET CUTTER OF
    SET TEAR ON
    CLS
    BARCODE 481,303,"128M",102,0,180,3,6,"!10512345678"
    CODEPAGE UTF-8
    TEXT 433,300,"arabtype.TTF",180,20,20,"ام محمد لعجم"
    PRINT 1,1

    I tried the above TSPL Arabic name not printing..

    thanking you

  4. #4

    Thread Starter
    New Member
    Join Date
    Jul 2020
    Posts
    9

    Re: Arabic Words in Barcode Print

    Thank you for the Reply

    Using Bartender it prints Arabic Character...
    I don't know how to send the code thru vb6.

    SIZE 88.1 mm, 50.8 mm
    GAP 3 mm, 0 mm
    SET RIBBON OFF
    DIRECTION 0,0
    REFERENCE 0,0
    OFFSET 0 mm
    SET PEEL OFF
    SET CUTTER OFF
    SET TEAR ON
    CLS
    BARCODE 481,303,"128M",102,0,180,3,6,"!10512345678"
    CODEPAGE UTF-8
    TEXT 433,300,"arabtype.TTF",180,20,20,"ام محمد لعجم"
    PRINT 1,1

    I tried this TSPL. Barcode is printing but Arabic character not printing

    Thanking you

  5. #5
    Frenzied Member
    Join Date
    May 2014
    Location
    Kallithea Attikis, Greece
    Posts
    1,287

    Re: Arabic Words in Barcode Print

    https://www.seagullscientific.com/me...-bartender.pdf
    When you use a TrueType or OpenType font for a text object, the text area must be sent as an
    image to your printer each time the item is printed. Images are large and they take more time to
    send to a printer than simple text data does. But, depending on which international script you
    need, you may be able to use one of the following methods to avoid the performance loss that
    comes from having to transmit the text object as an image:
    * Use a font that is resident in the printer.
    * Use a downloaded font.
    For more information about how to optimize print performance, refer to the Optimizing Print
    Performance white paper at the following BarTender Software website:
    https://www.bartendersoftware.com/re.../white-papers/

    So the prn file is the one you sent to printer. But as I understand you have a reason to extract information from that file, so you want the arabic as bitmap to stay as text. As you see from the above you have to use an output to a printer which support the arabic font.

    So my idea is to export the prn from a "dummy" printer. A printer which you get the arabic txt as txt. And you have one, the older printer which produce the right file. So the solution is to have two exports, one for printing label, and another to extract information.

  6. #6
    PowerPoster jdc2000's Avatar
    Join Date
    Oct 2001
    Location
    Idaho Falls, Idaho USA
    Posts
    2,211

    Re: Arabic Words in Barcode Print

    So, if I am understanding you correctly, you are attempting to get VB6 to do what BarTender is doing now? To do that you will need to code your application so that it generates the same output, so you will need it to create the bitmap with the Arabic text and then you can get the same output to send to the new non-Zebra printer.

  7. #7

    Thread Starter
    New Member
    Join Date
    Jul 2020
    Posts
    9

    Re: Arabic Words in Barcode Print

    Quote Originally Posted by jdc2000 View Post
    So, if I am understanding you correctly, you are attempting to get VB6 to do what BarTender is doing now? To do that you will need to code your application so that it generates the same output, so you will need it to create the bitmap with the Arabic text and then you can get the same output to send to the new non-Zebra printer.
    Thank you for your reply..

    I developed a code for converting Arabic text to Image and then to string. But the is string not correct. From Bartender
    we are getting the below line for arabic text --- فرشلي صلصة اللازانيا 680غ
    BITMAP 344,168,34,32,1,џџџџџџ3џџџџџџџџџџџџџџџџџџџџџџџџџ№џџџџџџ3џџџџџџџџџџџџџџџџџџџџџџџџџРџџџџџќџџџџџџџџ џџџџџџРџџџџџџџџџЯУџўџџџр џџџџџџџџџџџџџ џцџџџџџџџѓџќџџџУў?џџџџџџџџџџџџў?џцџџџџџџџљџјџџџџŸџŸџџџџџџџџџџџџќџџџџџџџџџџљџёџџџџŸџŸџџџџџџџџџџџџ ќџџџџџџџџџџџљќџƒЧџŸџР 0x ‡џџ?‡рyџ?џ№џўџљ№џ gџŸџ џџ>€9џ> џР? ќџёУѓў8уУџŸќ?‘‡ђ3џ>yyџ<pуџ<xёџуѓў|ччџџќџ3ЯŸцxџ<јљџ<љѓџŸœ~9љўŸѓў|ччџџџљўsЯ?Юxsџ<ќљџ<љѓџŸ œџ3ќ№љў|ччџџџљќsЯ?Žyѓџ<ќЯљџ<љѓџ?Ьџ3ќёЧ џў|ччџџџљќџЯ?Ÿљѓџ<ќЧјџ<љѓџ?Ьџ3ќџу<ўџчџџџљљџЯ??љчџ<ќчќџ?џѓџ?Ь~3ќџѓ>ўџчџџџќуџЯœљ‡џ<ќѓџџ?џѓџ?Ю<qјџ ѓ>џџџчџџџќџЯ€џќџ<ќѓџџ?џѓџ?Я ј№ѓѓžџџџчџџџџџЯсџќџ<ќљќџ>ѓџ?ЯќёчŒџѓ?чџџџџџџЯџџќџџ<ќјќџ>ѓџ?Я<ў јРџџѓ?чџџџџџџЯџџџџџ<ќќџџ?џѓџ?Ю~ќќсџџџџчџџџџџџЯџџџџџ<ќўџ?џѓџ?Ю~ќџџџџџќџчџџџџџџЯџџќЯџ<ќўџ?џѓџŸž~ sљџџџџџќџчџџџџџџЯџџќЯџ<ќџ?џ?џѓџŸž~qёџџџџџџџчџџџџџџЯџџџџџ<ќџџ?џѓџ<јуџџчџџџџчџџџџџџЯџџџџџ<ќџПџ?џѓџР ? јўчџџџџчџџџџџџЯџџџџџ<ќџџџ?џѓџ№џУўўџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџ џџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџ џџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџ

    i dont know what type of string is this

    I don't know what to do?. Any Idea...

  8. #8
    PowerPoster jdc2000's Avatar
    Join Date
    Oct 2001
    Location
    Idaho Falls, Idaho USA
    Posts
    2,211

    Re: Arabic Words in Barcode Print


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