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

A

Astley Le Jasper

I'm creating excel docs on the fly using XLWT. However, I need to
include filters which I believe can only be done with pywin32.

Does pywin32 use elements from Windows itself, or excel when
dispatching?
 
T

Tim Golden

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
 
A

Astley Le Jasper

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

Hi Tim,

Thanks for that.

ALJ
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
474,265
Messages
2,571,069
Members
48,771
Latest member
ElysaD

Latest Threads

Top