Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How to get printer name where report is printed
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire de rapports & Rapports
Versions des environnements
Visual FoxPro:
VFP 9 SP2
OS:
Windows Server 2016
Network:
Windows Server 2016
Database:
Visual FoxPro
Application:
Desktop
Divers
Thread ID:
01650360
Message ID:
01650377
Vues:
108
Hi!

>http://www.atoutfox.org/articles.asp?ACTION=FCONSULTER&ID=0000000797
>set classlib to pdialog additive
> o=createobject("pdialog.pdialog")
> o.showprinter()
> ?o.printername

This answer shows how to select printer. VFP standard GETPRINTER() can probably used for this.
I dont understand why this class is better than using GETPRINTER() as described in

https://support.microsoft.com/en-us/help/162798/how-to-use-the-set-printer-to-name-command-to-print-to-a-specified-printer-in-visual-foxpro

I asked how to get printer where report was printed using PROMPT clause:
REPORT FORM xxx TO PRINT PROMPT
If this possbible, maybe thereis some sys() function or somethis other or is it possible to get printer name during report print ?

Or should this command re-factored not to use PROMPT clause like:
cPrinter = getprinter()
set printer to name (cPrinter)
REPORT FORM xxx TO PRINT
insert into logfile (PrinterUsedForPrinting) values (cPrinter)
Posted also in

http://stackoverflow.com/questions/43486693/get-printer-where-report-was-printer
Andrus
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform