PythonWin Outlook connection
Mark Hammond
MarkH at ActiveState.com
Fri May 11 20:52:53 EDT 2001
michael montagne wrote:
> The following sequence works on my machine during development but when I
> install on another computer(the actual user) I am greeted with the error at
> the bottom. I ran the COM MakePy Utility for Outlook. We both have the
> same version of MSOffice.
>
>
>>>>import win32com.client
>>>>objOut = win32com.client.dynamic.Dispatch("Outlook.Application.9")
Note that this line is explicitly _avoiding_ the makepy generated code.
By using "dynamic.Dispatch()", you are saying "always give me the
dynamic COM support, ignoring makepy support".
Try using: win32com.client.Dispatch("Outlook.Application.9")
Mark.
More information about the Python-list
mailing list