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

FoxPro 2.6a (DOS) Printing to remote printer . . .

Status
Not open for further replies.

WildSwan

Programmer
Mar 2, 2002
15
0
0
PH
I have a PC connected to a network and it has a dot matrix printer. On the other room another PC connected on the same network.

My invoicing program on the PC with printer prints without problem. But the PC in the other room will not print. It won't give any error. The printing job finishes but the print-out is lost. I trien printing using the note pad and it printed.

I wonder what is my problem.

All our PC runs in Win2K.

Thanks guys.
 
A couple things that come to mind:
1) Has this printer been properly shared?
2) Is this the default printer on 'remote' station?
3) How is the remote printer defined on the 'remote' station?
4) How is this printer referenced in the program?
5) Notepad is NOT a DOS program.

Rick


 
Look at the SET PRINTER TO command in HELP.
It works for me.
Bill
 
Hi WIldswan,

The bestway I have handled the printer solution is to use the DOS batch command to capture the printer port. This solves the issue of doing anything thru application code.

NET USE LPT1: \\myServer\myPrinterShareName /YES

This connects to the printer by capturing LPT1:

Then the DOS application sends the report. If this is the only printer used from the application, then you canm add in the batch file running the application..

NET USE LPT1: \\myServer\myPrinterShareName /YES
Add my Code to run the application
NET USE LPT: /d

If you have other printers used from application.. then..

Create separate batch files for each capture of the LPT1.. disconnecting of the same.. etc.. and let the user choose from a choice or by clicking icons in desktop.

:)

ramani :)
(Subramanian.G),FoxAcc, ramani_g@yahoo.com

 
Ramani,

Thank you very much.

Your solution is the one I am looking for all these times.

I have it all working now.

Thanks again.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top