Solved

Connect to a Barcode Printer  from VB

Posted on 1999-01-19
8
444 Views
Last Modified: 2013-11-18
In my application I've to print some barcode labels. My application is developed inVB. First I thought bringing up windows print dialog would serve the purpose. But when I really tested it I can see all the printers or devices connected except this barcode printer. Can anyone help me with How I can send information to the printer and print the barcode labels
0
Comment
Question by:VBLearner
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 5
  • 2
8 Comments
 
LVL 12

Expert Comment

by:mark2150
ID: 2014758
I assume you're using a dedicated barcode printer instead of using a general purpose printer and using a barcode control. For me, I'd go the barcode control route. This will allow you to print barcodes on any printer you choose.

However, if you must use a specialty printer for barcoding then you'll have to figure out the interface that the printer is using and then program VB to speak to that. I've written some code for barcode printers that connect via the serial port. You'll have to dig into the printer reference manuals to understand how to program them. There is no industry-wide standardization for barcode printers. Each vendor is pretty much free to do their own thing and generally do if only to prevent their printer being used without their special software.

The printers have their own programming language. Generally you define a form to the printer and down load that at the start of the day. Then you can just send data fields to the printer and it'll print a label on demand.

Watch out for trash in the data stream. Some printers use " as a delimiter. If you data stream contains a field that says 14" MONTIOR then your printer will cr*p out as it chokes on the " in the data.

You really need to be working with the printer vendor on this one.

M

0
 
LVL 12

Expert Comment

by:mark2150
ID: 2014759
What was reason for reject?

M

0
 

Accepted Solution

by:
danroach earned 50 total points
ID: 2014760
Most major bar code printer manufacturers have available, the printer drivers for their printers on their web site. Some bar code software suppliers also offer printer drivers for
various printers at no charge. Seagull Scientific's website offers printer drivers for multiple
printers such as Zebra, Intermec and Eltron. Get the driver that fits your printer and install
it. Once that is done, your app will be able to see the additional printer using the printer API.
0
Online Training Solution

Drastically shorten your training time with WalkMe's advanced online training solution that Guides your trainees to action. Forget about retraining and skyrocket knowledge retention rates.

 
LVL 12

Expert Comment

by:mark2150
ID: 2014761
Hey, VBLearner! You never did tell me what you didn't like about my answer!

M

0
 

Author Comment

by:VBLearner
ID: 2014762
Sorry Mr.M I didn't mean to upset you. I didn't mean to reject your answer. I should be careful when i play around these things
0
 
LVL 12

Expert Comment

by:mark2150
ID: 2014763
Ok, I was just wundering! <g>

What kind of barcode printer are you interfacing to?

What kind of barcodes are you printing? UPC? Code39? Codabar?

M

0
 

Author Comment

by:VBLearner
ID: 2014764
we are using code39 barcode printing
0
 
LVL 12

Expert Comment

by:mark2150
ID: 2014765
There's usually a simpler way out. Mabry has a barcode control that will allow code39 label printing on *ANY* printer that windows can reach. Additionally I have a CODE39 font set that DOS programs can use to download to laser printers. You download the font, select the font, and then *EVERYTHING* the printer prints comes out in barcode.

The only reason that I would spec a special "barcode" printer is if I needed to print labels on mylar or some other specialty material.

M

0

Featured Post

Want Experts Exchange at your fingertips?

With Experts Exchange’s latest app release, you can now experience our most recent features, updates, and the same community interface while on-the-go. Download our latest app release at the Android or Apple stores today!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

When you try to share a printer , you may receive one of the following error messages. Error message when you use the Add Printer Wizard to share a printer: Windows could not share your printer. Operation could not be completed (Error 0x000006…
This article shows how to get a list of available printers for display in a drop-down list, and then to use the selected printer to print an Access report or a Word document filled with Access data, using different syntax as needed for working with …
This video explains how to create simple products associated to Magento configurable product and offers fast way of their generation with Store Manager for Magento tool.
This video Micro Tutorial shows how to password-protect PDF files with free software. Many software products can do this, such as Adobe Acrobat (but not Adobe Reader), Nuance PaperPort, and Nuance Power PDF, but they are not free products. This vide…

623 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question