ActiveX Questions
Rony
rony.steelandt at bucodi.com
Sat Feb 16 11:57:15 EST 2002
You are definitifly right, i get the same error with 2.1.2 and 1.5.2
Actually i tested it with C++ , VB, Windev and it works.
It only doesn't work with Python.
I think this could be a question for our COM expert Mark Hammond
Can you keep me posted on this,i could use the control too
Thanks
Rony
"Chris Gonnerman" <chris.gonnerman at newcenturycomputers.net> wrote in message news:<mailman.1013487810.369.python-list at python.org>...
> I am developing a headache messing with an OCX I picked up from the
> Internet. It seems that my forays into ActiveX never pan out; I should
> stick with Linux.
>
> The control is called "REPORTOCX.ReportOcxCtrl.1" (why does the name
> have to be such a pain to find?) I can instantiate it:
>
> >>> o = win32com.client.Dispatch("REPORTOCX.ReportOcxCtrl.1")
> >>>
>
> (I'm running 2.1.2 btw.) When I try to use it's methods all I get is:
>
> >>> o.AboutBox()
> Traceback (most recent call last):
> File "<interactive input>", line 1, in ?
> File "win32com\gen_py\E80AB8D2-EB1E-49EE-8C2A-57BB2E70302Ax0x1x0.py", line
> 29, in AboutBox
> return self._oleobj_.InvokeTypes(0xfffffdd8, LCID, 1, (24, 0), (),)
> com_error: (-2147418113, 'Unexpected failure', None, None)
> >>>
>
> Any method or property, same answer.
>
> The URL for the control is:
>
> http://www.qwerks.com/download/3693/report.zip
>
> It is supposed to be a general printing control, but nothing works.
>
> Chris Gonnerman -- chris.gonnerman at newcenturycomputers.net
> http://newcenturycomputers.net
More information about the Python-list
mailing list