Waldemar Osuch escreveu: > Luis P. Mendes wrote: >> Gregory PiƱero escreveu: >>> On 7/7/06, Luis P. Mendes <[EMAIL PROTECTED]> 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 > Thanks, but it's a workbook with several sheets.
Luis P. Mendes -- http://mail.python.org/mailman/listinfo/python-list