Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Report Form - NT vs Win 95
Message
From
25/01/2001 06:24:58
 
 
To
24/01/2001 16:04:26
General information
Forum:
Visual FoxPro
Category:
Reports & Report designer
Miscellaneous
Thread ID:
00468210
Message ID:
00468362
Views:
21
I have had the exact same problem today.

If you run a report, regardless of the current SET PRINTER TO status, the page setup in the report overrides the SET PRINTER command.

I have solved the problem by clearing the tag and tag2 fields in the .frx and with the following function, that sets printer according to OS, which I call before issuing the REPORT command.

FUNCTION SetPrinter(cPrinter)
LOCAL cOS
cOS = OS()
If "NT" $ cOS
cPrinter = "\\Servername\"+cPrinter
EndIf
Set printer To Name (cPrinter)
ENDFUNC

I don't like this approach, and if anybody knows how to make the report NOT use it's page setup printer setting I would like to know how.
Previous
Reply
Map
View

Click here to load this message in the networking platform