Link to home
Start Free TrialLog in
Avatar of posboy
posboy

asked on

Printing BARCODE Code39 on ZEBRA Printer HOW TO?

hi experts,

Can anybody please help me on this, I have a ZEBRA Barcode/Label Printer, bu I don't know how to print using VB 6. Please help.

thanks in advance.


posboy
Avatar of posboy
posboy

ASKER

Please give me a sample code...
Avatar of posboy

ASKER

Please give me a sample code...
Avatar of Ryan Chong
Connect your Barcode to your Comm Port then Using MSComm Control to Print the Barcode from your Barcode Machine.
Alternately, you can directly print to the com or parallel port as follows:

Dim iFileNumber as integer

' Pick one of these and use it in the open statement
Const cCommPort as String = "COM1:"
Const cParallelPort as String = "LPT1:"

iFileNumber = freefile()
open cCommPort for output as #iFileNumber
print #iFileNumber, "Barcodestring here";
close #iFileNumber
Avatar of posboy

ASKER

any other comments?
What else do you want?  You either print directly to the port (Open "...") or through an object that supports the port (MSComm).

Did you try either one?  Were they useful?  Did you have problems?
ASKER CERTIFIED SOLUTION
Avatar of kfrick
kfrick

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of posboy

ASKER

hi karl, i will try your suggestion, i will get back to you when im done. thanks
Avatar of posboy

ASKER

unfortunately i was not able to make it work. How about ZPL II? do you have any idea how to integrate those script with VB? can I use the simple Print method to send those script to the printer?
The data commands in the example I gave is for prodigy printers...the data commands you use will probably be found in the printer's programming manual. Possibly this ZPL II is a ZebraPrinterLanguage, and you have to use those commands instead of mine!

-karl
Hi posboy,
It appears that you have forgotten this question. I will ask Community Support to close it unless you finalize it within 7 days. I will ask a Community Support Moderator to:

    Accept kfrick's comment(s) as an answer.

posboy, if you think your question was not answered at all or if you need help, just post a new comment here; Community Support will help you.  DO NOT accept this comment as an answer.

EXPERTS: If you disagree with that recommendation, please post an explanatory comment.
==========
DanRollins -- EE database cleanup volunteer
Finalized as proposed

modulo

Community Support Moderator
Experts Exchange