[python-win32] COM problems
Mark Hammond
MarkH@ActiveState.com
Tue, 24 Apr 2001 15:09:54 +1000
> 1) My guess is that PythonCOM is sending the command "ApplyPageTemplate"
> without the parameter, and then when SigmaPlots gets this it
> balks and says
> it needs the parameter. This is consistent with the line
> "sp.Notebooks.Add" working but "sp.Notebooks.Add()" not working.
Can you post the complete traceback of the failure.
> 3) Early binding doesn't get started (for SigmaPlot, it works for Excel),
> even though I've run MakePy, and even if I start the above script with
> gencache.EnsureModule('{6E73CA05-CE63-11CF-B59C-0000929132CE}', 0, 1, 0)
> I'm a bit confused by all of this, but I've tried to trace it through the
> modules:
You should still be able to use it. I have covered this a few places
before. You use "gencache.EnsureModule()" to get the generated module, then
you can use the class named in the generated file.
Try a google search for EnsureModule().
Mark.