pyXLWriter - grid lines and if formula

Waldemar Osuch waldemar.osuch at gmail.com
Sun Jul 9 21:05:20 EDT 2006


Luis P. Mendes wrote:
> Gregory Piñero escreveu:
> > On 7/7/06, Luis P. Mendes <luis_lupe2XXX at netvisaoxxx.pt> wrote:
> >> Hi,
> >>
> >> I know that pyExelerator is the supported project now, but I can't use
> >> it because I'd need it to generate files from a web platform. Since I
> >> can not save a file to a file-like object, I have to use pyXLWriter.

> So, perhaps you could show me how to generate an excel file as a http
> response in django?

If it is a simple one sheet Workbook you can produce HTML document with
a table and set the headers to indicate it is Excel.

Content-Type: application/vnd.ms-excel
Content-Disposition: attachment;filename=report.xls

Lookup documentation on how to generate formula:
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnoffxml/html/ofxml2k.asp

Waldemar




More information about the Python-list mailing list