>George,
>
>>>I certainly agree on this. I use the common dialog ActiveX whereever possible. But for example in VFP we have very little control on advanced printer settings. Until this is provided I'll use the SYS(1037) and PROMPT clause because there is simply no alterative when it comes to advandes printer settings (Documentproperties).
>
>>You do have access to the advanced settings via the ShowPrinter method. One difference is that rather than the paper layout (which to me isn't useful), you give the user the opportunity to set the number of copies.
>
>What I meant is.. Can you set document properties like:
>- papersize, layout
>- papertray
>- printer resolution
>- color usage
>- print quality
>- Print truetype as graphic
>
>through the ActiveX control and print a VFP reports according these settings ??
>If you do I'm gladly want to know how you did it.
>
Hi Walter,
As I mentioned in my other post, setting the flags property to 0x40, produces exactly the same dialog that SYS(1037) does. Whether or not it'll give you everything you're after, I can't say off the top of my head, but I think it does. Check the docs or try this
oPrinter = CREATEOBJECT('MSComDlg.CommonDialog.1')
oPrinter.Flags = 0x40
oPrinter.ShowPrinter
and look a oPrinter in the debugger. I think you might find, as I have, that this, at least, gives you more control and information than even an enhanced SYS(1037) could.
George
Ubi caritas et amor, deus ibi est