[Tutor] How to open file in Excel/Calc spreadsheet?

Kent Johnson kent37 at tds.net
Sun Oct 15 13:53:53 CEST 2006


Basil Shubin wrote:
> Hi ,friends!
> 
> How I can open Excel or OOCalc spreadsheet file 'remotely' from python 
> programm? I mean how to execute Excel or Calc with appropriate 
> spreadsheet file?

You can use win32com to drive Excel using its COM interface. The sample 
chapter from the O'Reilly book "Python Programming on Win32" shows how 
to open a spreadsheet in Excel;
http://www.oreilly.com/catalog/pythonwin32/chapter/ch12.html

Google 'python excel com' for more examples.

Kent



More information about the Tutor mailing list