How do you set printer to a network printer 
Author Message
 How do you set printer to a network printer

I am working on finishing a project up and the company wants me to
connect the program to the network to print at different nodes on the
local area network. I seen the command
        set printer to \\<machine name>\<path name> = <dest>

        Every thing I tried it sent to the local printer on the machine I am
on even when I try to redirect the print out.
        I tried
                set printer to \\dummyname\var\barf="LPT2"
        and said the network printer is not connected.

please any help will be helpful.

Sun, 14 Jun 1998 03:00:00 GMT
 How do you set printer to a network printer

If you are using FoxPro for windows it cannot be done this way, cos as soon as you
give the command REPORT FORM xxxx TO PRINTER, Fox ignores all settings and prints to
the printer port that you used to set up the report.

Open the .FRX file that is created by your report and look into the memo fields
"tag2 "and the other memo field "tag".(See the developers guide for exact names.
These fields hold the printer setup at the TIME THE REPORT WAS CREATED.

1. If you only need to send output to a single port "\\server\canon on LPT1", then
before you do anything set your default printer in fox to this printer.

Open the said report and select report, laypot from the menu and select the printer
setup button. Select this printer from the list and close and save your report.
Output will now ALWAYS go to this printer.

2. For multiple printers, you need to be devious. This is how I do it.
a. I have a table which is a copy od\f the two tag fields +1 character field for the
report name. You can expand on this idea for searches.
RepoName C (20)
Printer  C (30)
Tag      M (10)
Tag2     M (10)

Repo name is the name of the report, Printer is the name of the printer and the memo
fields are the fields that hold report data.
Open the report as in point 1 above and save it. Copy the two tag fields to your
table and fill in printer and repo name.
Set up printer #2 and open the report again as above. SEt up a new printer in the
report and save.
Append the two tag fields to your table. Do this for each repo and each printer.
USE Myrepo.frx IN 0
Copy the relevant tag fields into the tag fields of the repo. Print. That's it.

Alternatively you can include the reports in the project and at print time copy them
to a temp file (SYS(3)) and modify the tag fields of the temp file.

Sun, 14 Jun 1998 03:00:00 GMT
 [ 2 post ] 

 Relevant Pages 

1. FPW2.6 printing to network printer w/SET DEVICE TO PRINTER

2. set printer to \\machine name\printer

3. Printing to Network Printer & setting path

4. Problem setting Network Printer in FoxPro 2.5 for DOS

5. Help needed in setting up a network printer in d3/linux

6. Detecting printer off-line and other printer problems

7. Selecting printer without printer dialog

8. System printer versus default printer

9. [4.5] Printer/Font Manager Error when changing printers

10. Still having printer problems on d3/Linux shared printers

11. How to send Printer Command to printer ??

12. v2.0 Printer to HP 5/6 Laser Printers

Powered by phpBB® Forum Software