>>Hello,
>>
>>I am just a little frustrated now, I can use the common dialog control to return the no. of pages
>> THISFORM.OLECONTROL1.SHOWPRINTER()
>> ? THISFORM.OLECONTROL1.PAGES
>>But I can't seem to find any referance to the selected printer. does any one now the secrets to this OLE control that I'm just not understanding.
>>
>>Much thanks
>>Jon Wilshusen
>
>Depending on the version of the control, some of the properties may not have the values as documented. While I haven't used the .PrinterDefault property, the settings on this *supposedly* write changes to WIN.INI (Win 95) or the registry (NT). In the former case you can examine the the file to make determinations as to whether or not it's been modified. Further, there's no indicate as to whether or not the control properly uses SendMessage() to tell the running application to reload the necessary section. I have a class in the Files/Download/Win 32 & Other APIs that can handle both of these details. Data from registry can be retrieved using the registry class that comes with VFP.
>
>hth,
>
>George
George,
Thanks for the reply, I don't thank I stated my question very well, what I wanted to know was, using the Common Dialog control and issuing a "showprinter()" the printer dialog pops up and you can make a printer selection, and after selecting a printer and clicking OK is their a way to determine what printer was selected?
I think I'm just going to us the good ol' GETPRINTER() function, though its not nearly as eye please as the one return with OLECONTROL.ShowPrinter.
Thanks Again, and by the way that INI stuff makes me nervous :-)
Jon
Definitly an under classmen <g>
Thanks
Jon
Non-MVP Non-MCP Non-MCSE
Visual FoxPro, What else is there?