Rotate Barcode 90 degree in POS printer

Joined
Aug 30, 2018
Messages
1
Hi,
Printer : POS Printer 58 Series (EPSON ESC/POS Commands).
OS: Windows 7 - 32bit
Env: MS VB 6.0
I can able to print barcode in the normal direction, Horizontal. It prints perfectly OK. Now, I need to rotate the Barcode 90 degree (Vertical). I have set Page mode.

Code:
Open "\\LAPTOP-PC\POS-58-Series" For Output As #1
        
        Print #1, Chr$(&H1B); "L"; ' Select page mode
        Print #1, Chr$(&H1D); "P"; Chr$(180); Chr$(180);
        Print #1, Chr$(&H1B); "W"; Chr$(0); Chr$(0); Chr$(0); Chr$(0); Chr$(180); _
                    Chr$(0); Chr$(44); Chr$(1); ' Set print area
        Print #1, Chr$(&H1B); "T"; Chr$(1); ' Select print direction, VERTICAL UPWARD
        
        ' BARCODE SECTION
        Print #1, Chr$(&H1D); "h"; Chr$(80); 'Set height
        Print #1, Chr$(&H1D); "w"; Chr$(2); ' Set width size to 3
        Print #1, Chr$(&H1D); "f"; Chr$(0); ' Select font
        Print #1, Chr$(&H1D); "H"; Chr$(0); ' Select print position
        Print #1, Chr$(&H1D); "k"; Chr$(2); ' Print bar code
        Print #1, "4965957073791"; Chr$(0);
        
        Print #1, Chr$(&HA);
        Print #1, Chr$(&HC); ' Batch print and return to standard mode
    Close #1
It prints only as texts in horizonal. instead of Barcode.

Any help?
thank you.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top