Wrox Programmer Forums
Pro VB 6 For advanced Visual Basic coders working in version 6 (not .NET). Beginning-level questions will be redirected to other forums, including Beginning VB 6.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Pro VB 6 section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
Old April 20th, 2007, 04:09 AM
Registered User
Join Date: Apr 2007
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default ESC / POS Programming

Hi, I'm programming a Software with Visual Basic 5 for an Epson POS printer (model TM-H6000II) and I need to print a barcod type (Code 128 A,C or EAN Auto-switch) but I don't know how to print this barcod, can anyone help me to print this type of barcod?

Tanks and best regards.

Old April 20th, 2007, 07:34 AM
Friend of Wrox
Join Date: Jun 2003
Posts: 2,189
Thanks: 5
Thanked 59 Times in 57 Posts
Send a message via MSN to gbianchi

hi there..

it's that a standard barcode?? did you try search for a font like that???



================================================== =========
Read this if you want to know how to get a correct reply for your question:
^^Took that from dparsons signature and he Took that from planoie's profile
================================================== =========
My programs achieved a new certification (can you say the same?):
================================================== =========
Old April 23rd, 2007, 11:14 AM
Authorized User
Join Date: Feb 2005
Posts: 16
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via Yahoo to umair_rathore

   do you want to print labels for your products? if this is the case then download some barcode font and try using it in crystal report. if not then plz write where u want to print it.


Don't express ur emotions, let the Emotions express themselves
Old April 24th, 2007, 05:05 PM
Registered User
Join Date: Apr 2007
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to Lenry

Hello John,

I had a big problem trying to create a barcode using my TM-T88,I got there in the end.

Please find below an example of code which will print barcode "this is a test" with Symbology 39, you should be able to change the code using the Epson Development manuals to EAN barcode.

Good Luck

MSComm1.PortOpen = True
MSComm1.Output = Chr$(29) & "h" & Chr$(80) 'Bardcode Hieght
MSComm1.Output = Chr$(29) & "w" & Chr$(1) 'Barcide Width
MSComm1.Output = Chr$(29) & "f" & Chr$(0) 'Font for HRI characters
MSComm1.Output = Chr$(29) & "H" & Chr$(2) 'Position of HRI characters
MSComm1.Output = Chr$(29) & "k" & Chr$(69) & Chr$(20) 'Print Barcode Symbology 39
MSComm1.Output = "*this is a test*" & Chr$(0) & vbCrLf
MSComm1.Output = Chr$(27) & "d" & Chr$(3) & vbCrLf
MSComm1.Output = Chr$(29) & "@"
MSComm1.PortOpen = False
End Sub

Similar Threads
Thread Thread Starter Forum Replies Last Post
ESC/POS bazani Pro VB 6 5 November 27th, 2009 09:47 PM
ESC/POS jreategui Pro VB 6 1 November 27th, 2009 09:44 PM
ESC button as Access Key NEO1976 C# 2005 1 January 18th, 2007 02:38 PM
How do I get a form to close w/esc key (VB 6.0) BradLee31 VB How-To 3 March 23rd, 2004 08:14 PM
Programming for POS systems drasko ASP.NET 1.0 and 1.1 Basics 0 March 12th, 2004 10:30 AM

Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.