>thanks George - I got your zip file.
>
>I have a question or two:
>
>Why did you set the flags to 64?
>I took it out and it still worked.
>What do flags do?
>
>Where did you get SHOWPRINTER().
>I do not understand why that works.
>thanks ... :)
Robert
64 causes the control to display the Print Setup dialog box rather than the Print dialog box (they're slightly different). Look in the CtrlHelp folder beneath VFP. There's a help file (VB.HLP) that has this information. Look in the index for CommonDialogs Control and CommonDialogs Constants (which are in hex).
All the control provides is an entry point into the Common Dialogs DLL. Many Windows applications, including VFP, make use of these. All SYS(1037), for examples, does is call this DLL.
George
George
Ubi caritas et amor, deus ibi est