>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.