[Tutor] How to open file in Excel/Calc spreadsheet?
Paulino
paulino1 at sapo.pt
Sun Oct 15 18:44:01 CEST 2006
Very simple: os.startfile([file])
ex:
>>> import os
>>> os.startfile("d:\\documentos\\eleicoes2005-dn.xls")
It works with any file tipe in windows, the file is opened with it's associated application.
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?/
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.python.org/pipermail/tutor/attachments/20061015/a013fe0d/attachment.html
More information about the Tutor
mailing list