Solved

Connect to a Barcode Printer  from VB

Posted on 1999-01-19
8
438 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
Comment Utility
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
Comment Utility
What was reason for reject?

M

0
 

Accepted Solution

by:
danroach earned 50 total points
Comment Utility
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
 
LVL 12

Expert Comment

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

M

0
6 Surprising Benefits of Threat Intelligence

All sorts of threat intelligence is available on the web. Intelligence you can learn from, and use to anticipate and prepare for future attacks.

 

Author Comment

by:VBLearner
Comment Utility
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
Comment Utility
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
Comment Utility
we are using code39 barcode printing
0
 
LVL 12

Expert Comment

by:mark2150
Comment Utility
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

What Is Threat Intelligence?

Threat intelligence is often discussed, but rarely understood. Starting with a precise definition, along with clear business goals, is essential.

Join & Write a Comment

If you use a Brother DCP 130C or similar Brother printer, at some point you might encounter the following problem: after you change the ink cartridge, the printer displays an "ink empty" message. Sometimes you just need to follow the instructions…
E-commerce is quite a gambling world, and you should never entrust your business to a lucky chance. In order to outrun your competitors in a race to attract as many customers as possible, you need to have a well thought-out strategy under your belt.…
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.
You have products, that come in variants and want to set different prices for them? Watch this micro tutorial that describes how to configure prices for Magento super attributes. Assigning simple products to configurable: We assigned simple products…

772 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

Need Help in Real-Time?

Connect with top rated Experts

9 Experts available now in Live!

Get 1:1 Help Now