Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Printer name stored in FRX
Message
From
19/07/1999 12:56:33
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
Reports & Report designer
Title:
Printer name stored in FRX
Miscellaneous
Thread ID:
00243173
Message ID:
00243173
Views:
64
I have a system in VFP 5.0 that has a large number of reports. We recently upgraded our NT server and I am now having problems with print spoller errors when trying to print reports. The system allows for selecting default printers for certain types of reports and saves the printer names to memory variables. The values stored are HPLaserJet4L or Epson Color which match the printer names on the server. The problem is that the server name has changed but the printer names have remained the same. When looking inside the FRX file I see that the name of the printer is stored there with the old server name:

ex.
DRIVER=winspool
DEVICE=HP LaserJet 4L
OUTPUT=\\oldserver\HPLaserJet4L
ORIENTATION=0
PAPERSIZE=1
COPIES=1
DEFAULTSOURCE=1
PRINTQUALITY=300
YRESOLUTION=300
TTOPTION=2

Is there a way to remove these settings? Whenever running a report the code first does SET PRINTER TO NAME (gRPTPrint) where gRPTPrint is the variable holding the printer name, then calls the report.

If I remove the first 3 lines (DRIVER,DEVICE,OUTPUT) it still generates the error. If I modify the report and specifically select the desired printer then save the report it works. I don't want to have to go into each report and the system is used in other offices that don't have the same printer so I would prefer not to have any specific printer information stored in the report form.

Any suggestions will be appreciated.
Mark Johns
Next
Reply
Map
View

Click here to load this message in the networking platform