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!

Printing with Lexmark under Win XP

Status
Not open for further replies.

jajiyiko

Programmer
Mar 18, 2002
33
TR
Hi!
I have a problem. I can not print my application under
Win XP with USB. How can I do it?
 
Set the printer up as a shared printer through a server or PC, ie., \\server\sharename.

Then,
RUN ("Net Use lpt1 \\server\sharename /persistent:yes")

All lpt1 output will be routed to the shared printer with this command.

To disconnect, RUN ("Net Use lpt1 /delete")

HTH.



 
I couldn't get the Net Use method to work. On investigation I found the following.

If you are using a networked printer, and the pc you are printing from hasn't got the printer attached e.g.

PC-A = usb printer
PC-B networked as peer to peer with PC-A

Then you still need to have the LPT1 port enabled in the bios.

For networked pcs with no printer attached I always disable the port in the bios. You shouldn't do this for clipper printing.

Next problem I had was that the net use would always fail with a 'connection in use' type of error.

Just delete the port with:

net use lpt1: /delete

and then recreate the connection with

net use lpt1 \\pc-a\printer /persistent:yes

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top