Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
User ability to designate a report-specific printer
Message
De
16/01/2013 11:01:16
 
 
À
16/01/2013 10:44:04
Stan Vaninger
Mitek Industries, Inc
Missouri, États-Unis
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire de rapports & Rapports
Versions des environnements
Visual FoxPro:
VFP 9 SP2
OS:
Windows 7
Network:
Windows 2008 Server
Database:
MS SQL Server
Divers
Thread ID:
01562970
Message ID:
01562972
Vues:
78
>What is currently the best way to give the user the ability to designate a report-specific printer?
cPrinter = GETPRINTER()
>This is a large application where the user has the ability to add new reports.
>
>If a DEVICE=PrinterName line is added to the Expr field in the first record
>of a frx, will the report always be sent to the specified printer without having
>to add a Set Printer To Name command?
>How does that work?

I would disable/remove the specific printer reference in the report itself, and then set the printer prior to generation.
cPrinter = GETPRINTER()
IF NOT EMPTY(cPrinter)
    SET PRINTER TO NAME (cPrinter)
ENDIF
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform