Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Common Dialog Control
Message
From
13/04/2001 17:42:51
 
General information
Forum:
Visual FoxPro
Category:
ActiveX controls in VFP
Miscellaneous
Thread ID:
00495437
Message ID:
00495462
Views:
35
>Well, I didn't get that far yet, but thanks for saving me the trouble :)
>John

Whoops, the error is actually "Object class is invalid for this container". So there still might be a way to do it programmatically.

I've just tried a new way. Add an "OLECONTROL" to the form, and then you can access it.
oForm = CREATEOBJECT("form")
oForm.AddObject("oPD","OLECONTROL","MSCOMDLG.COMMONDIALOG")
oForm.oPD.ShowPrinter()
No need to actually show the form you added it to, but it seems that an olecontrol must live within a form.
Fred
Microsoft Visual FoxPro MVP

foxcentral.net
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform