Does MS Office need to be installed to use pywin32 for editing Excel docs?

Tim Golden mail at timgolden.me.uk
Tue Jun 15 04:44:22 EDT 2010


On 15/06/2010 09:32, Astley Le Jasper wrote:
> Does pywin32 use elements from Windows itself, or excel when
> dispatching?

Yes: it's simply exposing to the Python user the API provided
by MS Office (or whatever other app) via the IDispatch COM
mechanism.

IOW, if you don't have Microsoft Excel installed, this won't work:

import win32com.client
win32com.client.Dispatch ("Excel.Application")

TJG



More information about the Python-list mailing list