[python-win32] Dispatch suddenly generates com_error

Jeff Shannon jeff@ccvcorp.com
Fri, 05 Jul 2002 09:46:31 -0700


> From: "Strijbos, Dr. R.C." <R.C.Strijbos@tue.nl>
>
> As a novice to COM I seem to have done something completely wrong:

No, only one slight error....  :)


> xl=win32com.client.Dispatch("Excel Application")

You need "Excel.Application" -- a period instead of a space.  The error you're getting is simply because the Windows COM infrastructure
cannot find the string you've given.  Typically, class strings use a period-separated name.

Jeff Shannon
Technician/Programmer
Credit International