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

2006-10-15 Thread Basil Shubin
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

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

2006-10-15 Thread Kent Johnson
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

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

2006-10-15 Thread Paulino
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

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

2006-10-15 Thread wesley chun
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.