Hi,
I have a DLL ActiveX for Report generation (with datareport)
and I use this code to instancing and manage CommonDialog, that need for
printer default change:
----------------------------------------------------------------------------
Private objCommonDialog As Object
Set objCommonDialog = CreateObject("MSComDlg.CommonDialog")
...
objCommonDialog.ShowPrinter
...
----------------------------------------------------------------------------
With Win2k code work!!!
But I have problems with XP Professional SP1.
When the "CreateObject" is processed I have this error message :
"Runtime Error 429: ActiveX component can't create object"
How I can resolve this problem?
Thank in adavance.
Crevit
Rekhender Dhawan - 25 Oct 2004 17:52 GMT
Hi!
Try registring ComDlg32.ocx on ur Win-XP machine with RegSvr32 <Path>
This hopefully will solve ur problem!
Regards
Rekhender
> Hi,
>
[quoted text clipped - 20 lines]
>
> Crevit