×
INTELLIGENT WORK FORUMS
FOR COMPUTER PROFESSIONALS

Contact US

Log In

Come Join Us!

Are you a
Computer / IT professional?
Join Tek-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!

*Tek-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here

lprint with XP and an HP 656c

lprint with XP and an HP 656c

lprint with XP and an HP 656c

(OP)
Hi,
Bought a new computer with XP and an HP 656c printer.
Whenever I come to an LPRINT statement the program hangs and nothing prints.  Anybody else have this problem or does anybody know a fix.
Thanks,
Herb

 

RE: lprint with XP and an HP 656c

You should use
OPEN LPT1 FOR OUTPUT AS #1

or LPT2, whatever your printer is.  after finishing printing, you need to send a carriage return character to your computer.

RE: lprint with XP and an HP 656c

(OP)
Hi,
Thanks for your answer.
However, my printer is connected to a usb port.  How do I handle this.
Thanks again,
cryptoc

RE: lprint with XP and an HP 656c

There have been a lot of posts at Tek-Tips about the USB port, as of yet I have never heard of someone who has been abnle to figure it out.

If a man says something in the forest and no woman hears it is he still wrong?

RE: lprint with XP and an HP 656c

(OP)

Hi,
I guess I am the first who can't figure it out.
What could I write in qbasic that would direct the printer to the usb port?
Is it possible that the printer or XP does not recognize  printing from DOS?
Thanks
cryptoc


RE: lprint with XP and an HP 656c

Do you have to be able to print it directly from the qbasic program?  You could simply have the program save the information you want printed into a text file and simply printing it later from Notepad.

You can not communicate directly to the printer.  XP will not allow it, every bit of information that the printer gets has to come from the printer's driver, that is the only way to communicate with the printer, if you can crack the driver you could then talk to the printer.

If a man says something in the forest and no woman hears it is he still wrong?

RE: lprint with XP and an HP 656c

(OP)

Hi,
Thank you qbasicking.
I have made adjustments to program and changed all lprint statements to print# and it worked.
Thanks again,

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Tek-Tips Forums free from inappropriate posts.
The Tek-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Tek-Tips forums is a member-only feature.

Click Here to join Tek-Tips and talk with other members! Already a Member? Login

Close Box

Join Tek-Tips® Today!

Join your peers on the Internet's largest technical computer professional community.
It's easy to join and it's free.

Here's Why Members Love Tek-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close