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 Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Another "print from DOS" to network printer thread! 2

Status
Not open for further replies.

MadGeni

Technical User
Dec 13, 2002
19
GB
Hi there,

First of all, let me say i've keyword searched my problem, and read the majority of threads, links and FAQs, but whenever i get a thread where someone has the same problem, no one has posted the solution!
Ok, I have an HP 6110 multi-function, connected via USB to a Win2k desktop. I've shared this printer, and want a laptop with XP Pro on it to print from an old DOS app.
Here's what i've done:
Shared printer;
created LPT1 on XP laptop (net use lpt1 \\servername\share) - it's currently persistent, although i was setting it in a batch when i call the dos app.
I've also created a printer on the XP machine mapping lpt1 to \\servername\share on a local port.

When i try dir > lpt1 from dos, i see the doc show on the print queue on the w2k machine, spools, then disappears - with no print..I've messed about with it ALOT (turning off spooling,turning it back on again, updating drivers, reinstalling the printer..argh!!).

Any suggestions i've not thought of?!?
As usual, all help much appreciated :)

 
Have you installed the printer driver on the machine in question?

It's been a while since I had to set this sort of thing up but I think the way I have got this to work before is to install the printer on the WinXP machine as a network printer. Then when it is installed, assign the lpt1 port to that printer. You should be able to assign that port from the Printer Properties once the printer is set up.

Greg Palmer
Freeware Utilities for Windows Administrators.
 
Hi, Madgeman

1. Does the laptop have a physical lpt1?

If so, go into the bios and either disable it or change it to lpt2 or else get the dos app to print to lpt2 and change your net use accordingly.

2. Have you tried closing the DOS window to see if it then despools?

3. Have you tried pushing out a Form Feed after the print output.

Depending on the printer driver, this just simply may not work. Normally I would not expect you to have to create a printer on the laptop to support it. If all else fails, you can either change the DOS app to print to disk & then invoke Wordpad to open the text file or else use a spooler program such as DOSPRINT or WINPRINT (there are many) which will capture DOS output and spool it to a Windows printer.

You may have already seen this, but the following link has a good discussion of various spoolers, plus a lot of Clipper-specific stuff you are likely not interested in:


Jock
 
Hi, again

ALERT ALERT - SOMETHING HAS CHANGED IN THAT LINK IN MY LAST MESSAGE. I TRIED IT AFTER POSTING MY MESSAGE AND GOT SEVERAL SECURITY WARNINGS AND POPUP ALERTS!!!!

I do not recommend connecting to that link!!!!

My apologies, it was OK the last time I looked at it (years ago). I should have tried it first, but only looked at my local copy.

Jock
 
Hi there,

Thank you both for your responses - will take a look today. I'll try adding the printer to the XP machine, and mapping it to lpt1. It has no physical lpt1, so shouldn't be able t disable it in the bios, but i'll check!
The app in question has no means of exporting data to a file etc, so I can't do that either :(

I'll certainly look into the spooler info - Thanks again.

 
See if this thread offers any help...
thread615-1193180

ROGER - G0AOZ.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top