Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to get printer name where report is printed
Message
 
To
19/04/2017 09:26:40
General information
Forum:
Visual FoxPro
Category:
Reports & Report designer
Environment versions
Visual FoxPro:
VFP 9 SP2
OS:
Windows Server 2016
Network:
Windows Server 2016
Database:
Visual FoxPro
Application:
Desktop
Miscellaneous
Thread ID:
01650360
Message ID:
01650423
Views:
47
>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
Previous
Reply
Map
View

Click here to load this message in the networking platform