Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Report Form - NT vs Win 95
Message
De
25/01/2001 06:24:58
 
 
À
24/01/2001 16:04:26
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire de rapports & Rapports
Divers
Thread ID:
00468210
Message ID:
00468362
Vues:
18
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.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform