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:
01650423
Vues:
46
>Hi!
>
>>Because my class allows a printer name to have 254 characters long, rather than 32 characters.
>>Getprinter() does not allow you to change the number of copies, or change the page range etc...
>
>How to get source code for this class ?
>
>Class library download from http://www.atoutfox.org/articles.asp?ACTION=FCONSULTER&ID=0000000797
>
>does not contain source code
>
>Andrus.

That was intentional. The library comes as is. I wrote it. It is a simple WinApi call to prompt the standard Windows printer prompt in any Windows version.
It returns these values
set classlib to pdialog additive
o=createobject("pdialog.pdialog")
o.showprinter()
?o.printername
?o.defaultsource
?o.nFrom
?o.nTo
?o.duplex
?o.formname
?o.orientation
?o.papercopies
?o.printquality
?o.yresolution
?o.paperscale
?o.bitsperpixel
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform