Solved

Connect to a Barcode Printer  from VB

Posted on 1999-01-19
8
442 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
  • 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
Flexible connectivity for any environment

The KE6900 series can extend and deploy computers with high definition displays across multiple stations in a variety of applications that suit any environment. Expand computer use to stations across multiple rooms with dynamic access.

 
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

Networking for the Cloud Era

Join Microsoft and Riverbed for a discussion and demonstration of enhancements to SteelConnect:
-One-click orchestration and cloud connectivity in Azure environments
-Tight integration of SD-WAN and WAN optimization capabilities
-Scalability and resiliency equal to a data center

Question has a verified solution.

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

Causes of paper jams:The following are the main causes of paper jams. Guides:If the guides for the paper are not set correctly they may cause the paper to enter at an angle. You should ensure that the guides are set correctly for the paper type a…
Read about how to choose the best possible content marketing agency to suit your needs. Content marketing has become an integral part of running a successful tech business, so it is wise to be informed.
Viewers will get an overview of the benefits and risks of using Bitcoin to accept payments. What Bitcoin is: Legality: Risks: Benefits: Which businesses are best suited?: Other things you should know: How to get started:
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.

828 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