-
Feb 7th, 2023, 04:33 AM
#1
Thread Starter
New Member
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
-
Feb 7th, 2023, 10:29 AM
#2
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.
-
Feb 7th, 2023, 12:17 PM
#3
Thread Starter
New Member
Re: Arabic Words in Barcode Print
 Originally Posted by jdc2000
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
-
Feb 7th, 2023, 12:31 PM
#4
Thread Starter
New Member
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
-
Feb 7th, 2023, 12:59 PM
#5
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.
-
Feb 7th, 2023, 12:59 PM
#6
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.
-
Feb 8th, 2023, 07:24 AM
#7
Thread Starter
New Member
Re: Arabic Words in Barcode Print
 Originally Posted by jdc2000
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...
-
Feb 8th, 2023, 10:42 AM
#8
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
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|