> -----Original Message----- > From: [EMAIL PROTECTED] [mailto:python- > [EMAIL PROTECTED] On Behalf Of Juan_Pablo > Sent: Wednesday, February 13, 2008 1:07 PM > To: python-list@python.org > Subject: Re: Word document accessing using python > > > > import win32com.client > > but, window32com.client is only functional in windows
Correct. Microsoft tries very hard to make sure that its applications and their saved data are only readable/usable/automate-able using MS-Office and MS-Windows (and preferably the current versions of each.) If you can't create a quality product that people will willingly pay money for, then use lock-in to squeeze money out of them. =/ As suggested by castironpi, you could save the word docs in a neutral format such as text or xml. Another idea is to find a module or commercial product that will read word files. In theory, from what I've heard, Open Office can read some (most?) word formats, and since OO has a scriptable api (does it?), you could use OO to read the word doc and use OO's api to get the relevant data. You would need to test it out. ***** The information transmitted is intended only for the person or entity to which it is addressed and may contain confidential, proprietary, and/or privileged material. Any review, retransmission, dissemination or other use of, or taking of any action in reliance upon this information by persons or entities other than the intended recipient is prohibited. If you received this in error, please contact the sender and delete the material from all computers. GA621 -- http://mail.python.org/mailman/listinfo/python-list