Click here to Skip to main content
15,879,095 members
Please Sign up or sign in to vote.
3.00/5 (1 vote)
See more:
I am working on an existing project which is written on VB6 and now I need to encoorporate barcode printing on it. I have written the code for it and it is working well and fine when the printer is connected to serial port on my development machine.

The problem is that in the clients machine doesnot have serial port but is having only a USB port. When I connected the printer through USB port nothing is happening. Am I suppose to make any changes on my code to make it happen?
Posted
Updated 24-Mar-10 20:46pm
v2

1) Install the printer in windows. [You need to install drivers for both LPT ad USB]
2) Close all programs
3) Click on "Start"
4) Choose "Settings" then "Printers and Faxes"
All of your printers should now be listed.
5) Do a "right mouse" click on your printers name.
6) Choose "Properties" from the popup menu
7) Click on the "Ports" tab at the top
8) Write down the name of your USB port name (just incase)
9) Click on the "Enable Printer Pooling" checkbox
Note: This should put a checkmark in that box.
10) Now scroll up or down through all of your listed ports
and click on the "LPT1" port to place a checkmark in it.
Note: You should now have 2 ports selected - USB & LPT1
11) Click on “Advanced” tab.
12) Click on “Print Processor..” button.
13) Select “TEXT” from “Default datatype:” list.
14) Click “OK”
15) Click on "Apply" and "Ok".
16) Restart your program and try printing.

You have nothig to do with your vb code here. It should work.

Hope it helps you
 
Share this answer
 
1) Use a free barcode font, e.g. "3 of 9".

2) Search Codeproject. This question has been asked many times before.

3) Get the specifications for the desired barcode-type and do the barcode drawing yourself.

4) And most important: Learn how to use google!
 
Share this answer
 
This question is not clear. Do you have a printer connected to the USB? Do you have barcode fonts installed? Why are you using VB6, it was replaced by VB.NET years ago.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900