RES: Create Excel Files without COM

Alves, Carlos Alberto - Coelce calves at coelce.com.br
Thu Apr 11 08:33:15 EDT 2002


Also it works at Excel 97.

> -----Mensagem original-----
> De: Thomas Guettler [mailto:st-newsgroups at thomas-guettler.de]
> Enviada em: quinta-feira, 11 de abril de 2002 04:55
> Para: python-list at python.org
> Assunto: Re: Create Excel Files without COM
> 
> 
> James Strater wrote:
> 
> > Thomas Guettler <st-newsgroups at thomas-guettler.de> wrote::
> > 
> > 
> >>Hi!
> >>
> >>Is there something like WriteExcel from perl in python?
> >>I need to generate an MS-Excel file. I don't want to use
> >>COM although it will run on windows.
> >>
> >>The data is simple. Just text in columns and rows.
> >>
> > 
> > 
> > You can format your output as HTML, and then put a .xls 
> extension on it.
> > When it is opened in excel, it will be fine.  To see what 
> your input needs
> > to look like, take your spreadsheet and 'save as' HTML.
> 
> 
> Thank you!
> 
> At least Excel 2002 and 2000 can open the created HTML.
> I pass it to the webbrowser with a content-type like this:
> REQUEST.RESPONSE.setHeader('Content-Type',
>     'application/vnd.ms-excel')
> and Excel opens it.
> 
>   Fine!
> 
> thomas
> 
> 
> 
> 
> -- 
> http://mail.python.org/mailman/listinfo/python-list
> 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-list/attachments/20020411/d2e9298f/attachment.html>


More information about the Python-list mailing list