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!

Problem printing to remote printer on NT machines with clipper 5.2

Status
Not open for further replies.

BillatRma

Programmer
Jan 3, 2000
6
US
We have a clipper 5.2e program that on some NT machines we get the message "printer is in use by another user or is not ready" - neither of which seems to be true. The printer is not a local printer. We were able to use the NET USE LPT1: \\computer\printer (form DOS) to be able to copy files from DOS to LPT1: and the file goes to the remote printer, but the clipper application still gives the error message. We have an NT machine on a peer-to-peer network that has no trouble printing to a remote computer (say to a printer attached to a windows 95 machine). We have been through many permutations of settings with the printer, but have not been able to solve this. Does anyone have any ideas? Thanks.
 
I have successfully printed on an NT network. First I set the printer settings in the users NT logon script using Net Use. For the Clipper applications I held a table of printers the user could connect to. Before printing in Clipper ran NET USE to a file and checked the current workstation settings against the user table. If the Workstation setting was not in the users settings or not connected, I gave the user tha choice to select a printer for the clipper app. (this was in case the user had selected and different printer under a windows app - or changed the default printer) <br>
in Clipper code I than ran:<br>
set default to<br>
set printer to (cPort) additive<br>
set default to &lt;Default Directory&gt;<br>
set device to print<br>
<br>
Hope this works for you<br>
<br>

 
Another point. Under NT most of my Clipper Apps took up 100% of the Processor, and halted printing. I found a PrinterFix() function and small library to link in, which &quot;time slices&quot; and allows other Applications & background printing to work with Clipper under NT.<br>
e-mail me at <A HREF="mailto:pck@tokleyhiggs.freeserve.co.uk">pck@tokleyhiggs.freeserve.co.uk</A> if you want the .Lib file<br>
<br>

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top