Python script that writes to an Excel file

Thomas Guettler pan-newsreader at thomas-guettler.de
Sat Jul 27 14:47:56 EDT 2002


On Sat, 27 Jul 2002 15:44:56 +0200, Jeffrey Keil wrote:

> Greetings:
> 
> I'd like to have a Python script open a text file, process the data in
> the text file and then write a report to an Excel file. I'm not sure how
> I would write to an Excel file from a Python script. Is there any books
> that would give me details on doing this?

Just create a html-table like this:

<html>
 <table>
  <tr> <th>col 1 </th><th>col 2</th> </tr>
  <tr> <td>foo ....</tr>
  ....
 </table>
</html>

Then write this to a file ending with *.xls. I think Excel since Excel97
will read this

 thomas



More information about the Python-list mailing list