On Vista, it's necessary to register python COM objects from an "elevated"
process. In practice, this means I tend to keep a command-prompt open
started with "run as administrator", do registration and unregistration
there, then switch back to the normal command-prompt to do testing etc. I
finall
Somehow I managed to forget about the wintypes module :) I stopped using it
because it didn't define a lot of stuff I was using, but I'll be sure to use
it from now on, and only add new definitions in my code, to avoid the
confusion and redefinition.
Thank you for the help
On Jan 17, 2008 3:50 AM
Henry Baxter schrieb:
> Hello,
>
> I keep getting this error, and I cannot figure out why. I have code that
> registers a window class that works, and code that does not. Both bits of
> code create a WNDCLASS, both use byref(thewndclassinstance), both make sure
> there is always a reference to the
I guess it was more of a syntax error :
Try this now , it works and creates a text box with ReD Background
..
___
import win32com.client, win32api
w=win32com.client.gencache.EnsureDispatch('word.application',0)
w.Visible=1
d
[Copying back to the list... again. Please keep
your posts on-list: I'm not the only person who
can answer questions about python-win32!]
a_n_s_h_a_n wrote:
> hi! i found something on the web about finding
> and replacing text anywhere in the ms word document.
> the problem is that it is in vb f