Solved

Connect to a Barcode Printer  from VB

Posted on 1999-01-19
8
439 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
 
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
PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

 

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

PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
USB Error 20 149
Xerox copier tech support phone number 1 50
Printing A1 on A4 Printer 8 109
free scanner TWAIN can be operated with a Web application 9 41
I recently read an article which suggested that 60% of businesses in the U.S. that process credit card details online in order to accept payment for goods or services were not Payment Card Industry security standards (PCI) compliant. This statement …
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.…
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:
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…

863 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

20 Experts available now in Live!

Get 1:1 Help Now