Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Common Dialog Control
Message
De
13/04/2001 17:42:51
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Contrôles ActiveX en VFP
Divers
Thread ID:
00495437
Message ID:
00495462
Vues:
33
>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
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform