>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