How to print to parallel port

I want to print to a parallel port using visual basic. I have been searching some code to write to the port, but I only found short codes sending signals to the port, bits, and leds and all that stuff. Any idea or code to print to a printer, with something as easy as printer.print "text to print". (Be aware I can't use the printer object). I'm triying to print some window I'm building in my program
Thanx, M
mjimenoAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

vinnyd79Commented:
Have you tried:

Dim ff as integer
ff = Freefile
Open "LPT1" for output as #ff
Print #ff, "Print some stuff"
Close #ff
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
mjimenoAuthor Commented:
it does nothing, the printer shows no answer
M
0
JR2003Commented:
Have a look in C:\Windows\system32\spool\PRINTERS and see if a .spl file has been created in there.
0
Ultimate Tool Kit for Technology Solution Provider

Broken down into practical pointers and step-by-step instructions, the IT Service Excellence Tool Kit delivers expert advice for technology solution providers. Get your free copy now.

mjimenoAuthor Commented:
It has not been created. By the way, I'm under Windows 2000 and VB 6.
M
0
flyers_patCommented:
don't be upset but is there a printer connected? and if so, what type is it?
0
flyers_patCommented:
do you want to print a form or just some text?
0
flyers_patCommented:
if you want to print a form, just do me.printform

it will print on the default printer
0
mjimenoAuthor Commented:
Ok, the printer is connected, it's a label printer for barcodes. But I solved it finally because I was allowed to use the printer object. Thanxs any way. I'll split the points among the most helping comments. M
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Visual Basic Classic

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.