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?
Thanks in advance!
___
Tutor maillist - Tutor@python.org
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
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
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?
there was a similar question on the main newsgroup a few days ago,
slightly related to this post, but the answers will be helpful here.