> I am using PythonWin 2.1 and I'm trying to enter the
> instructions shown in the section of the book "Python
> Programming on Win32" regarding Collaboration Data
> Objects (CDOs) on page 278. I enter the following two
> commands in the PythonWin interactive session...
>
> from win32com.client import Dispatch
> s=Dispatch("Mapi.Session")
Hi Mike, I wrote the offending example. I just retried
it on my own machine (Win2000, Python 2.1.1, Win32all
build 140) and it works fine for me. Do you have
a working copy of Outlook on that machine? If so,
you'll definitely have all the Mapi components;
if not you'll have to investigate.
Once the two lines run, you'll have to read up on the
Mapi object model. I did a quick Google search and
found this; most of the VB snippets should be trivial
to port to Python.
http://www.execpc.com/~dg/tutorial/howmapi/howmapi.htm
If in doubt, I strongly recommend (as I did in the book)
trying such snippets out from VB - use VBA in Word or Excel
if you don't have the full version. This will tell
you if it's a Python problem or not, and the error
feedback will be more helpful. Once a routine works,
you can put in in a standard Python routine in no time.
Best Regards,
Andy Robinson
_______________________________________________
ActivePython mailing list
[EMAIL PROTECTED]
To unsubscribe: http://listserv.ActiveState.com/mailman/listinfo/activepython