-
1
- #1
Background:
I have two Windows 98 machines on a peer-to-peer network each with two printers (four total). ComputerA has two dot matrix printers and computerB has an HPIII SI and an HP 4. The HP 4 is the default printer for both computers.
I also have a number of VFP reports. All the code, databases, documents, etc. are located on computerA.
The way the destination printer is determined is by the report itself -- I use no
commands. I did this by selecting a report and hitting modify and then selecting file|page setup. From there I hit print setup and chose my printer. Now whenever I print the report via
it prints to the correct printer.
On computerA all the printing is fine. I can print to the two local printers (dot matrix) and the two network ones (laser). On ComputerB I can print to the two network printers (dot matrix) and I can print to the HP 4.
My Problem:
From within my FoxPro application only, computerB cannot print to the HPIII Si. When it comes time to print a report to the HPIII Si, I get the error "Error Loading Printer Driver". I can still print from computerA to the HPIII Si, but computerB will not print to the HPIII Si from within FoxPro at all.
My Workaround:
As I wrote this I came up with a workaround. It seems to work fine, but I would still like to know how to properly resolve this issue.
What I did was go to computerB and rename the HPIII Si to "HPIII Si (local)" and re-shared it. (Renaming a printer makes the share disapear.) I then created a network printer with the name "HPIII Si". Now FoxPro thinks it is printing to a network printer, but it is really only printing to LPT1. Now computerB prints to the HPIII Si exactly the same way computerA does.
I'm not sure if anyone has ever run into a problem like this, but I would appreciate any insight people might be able to give me.
I have two Windows 98 machines on a peer-to-peer network each with two printers (four total). ComputerA has two dot matrix printers and computerB has an HPIII SI and an HP 4. The HP 4 is the default printer for both computers.
I also have a number of VFP reports. All the code, databases, documents, etc. are located on computerA.
The way the destination printer is determined is by the report itself -- I use no
Code:
SET PRINTER TO
Code:
REPORT FORM xxx TO PRINTER NOCOSOLE
On computerA all the printing is fine. I can print to the two local printers (dot matrix) and the two network ones (laser). On ComputerB I can print to the two network printers (dot matrix) and I can print to the HP 4.
My Problem:
From within my FoxPro application only, computerB cannot print to the HPIII Si. When it comes time to print a report to the HPIII Si, I get the error "Error Loading Printer Driver". I can still print from computerA to the HPIII Si, but computerB will not print to the HPIII Si from within FoxPro at all.
My Workaround:
As I wrote this I came up with a workaround. It seems to work fine, but I would still like to know how to properly resolve this issue.
What I did was go to computerB and rename the HPIII Si to "HPIII Si (local)" and re-shared it. (Renaming a printer makes the share disapear.) I then created a network printer with the name "HPIII Si". Now FoxPro thinks it is printing to a network printer, but it is really only printing to LPT1. Now computerB prints to the HPIII Si exactly the same way computerA does.
I'm not sure if anyone has ever run into a problem like this, but I would appreciate any insight people might be able to give me.