Hi,

I've read the csv and pdf howto at the documentation section and tried
to adapt it to excel files.

I'm trying to use pyExcelerator to build the Excel files.

 def ficheiroExcel(request):
      from pyExcelerator import *

      response = HttpResponse(mimetype='application/vnd.ms-excel')
      response['Content-Disposition'] = 'attachment;
filename=somefilename.xls'

      w = Workbook(HttpResponse)                 <-- this gives me an
error
      ws = w.add_sheet('inicio')
      ws.write(0, 0, Formula("-(1+1)"))

      #w.save(response)
      return response

How can I do it?

Luis P. Mendes


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-users
-~----------~----~----~----~------~----~------~--~---

Reply via email to