Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Set Printer to
Message
 
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Titre:
Versions des environnements
Visual FoxPro:
VFP 9 SP2
OS:
Windows XP SP2
Divers
Thread ID:
01428003
Message ID:
01428008
Vues:
58
Hi Bruce,

The line is not ignored. You can verify that by adding WAIT WINDOW SET("PRINTER",3) after it.
However VFP9 Report Writer respects printer info stored in the report and sends report to that printer. You've to remove printer related info from the report by opening it the Report Designer, unchecking Printer Environment oh the Report menu and saving report.
Also, macro substitution is totally unnecessary in this case. The Name expression works fine here
SET PRINTER TO NAME (marprinter)
>
>I am in the process of converting a VFP5.0 program to VFP 9.0 and the following line works great in 5.0:
>
>set printer to name &marprinter
>
>it resolves to:
>
>set printer to name \\till3\P1006
>
>Running it unchanged in 9.0, the line is ignored and the print job goes to the default printer.
>
--sb--
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform