Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

lprint with XP and an HP 656c

Status
Not open for further replies.

cryptoc

Programmer
Sep 28, 2002
4
US
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

 
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.
 
Hi,
Thanks for your answer.
However, my printer is connected to a usb port. How do I handle this.
Thanks again,
cryptoc
 
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?
 

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


 
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?
 

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

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top