Hi Luis,

On Mon, 2006-06-19 at 04:09 -0700, [EMAIL PROTECTED] wrote:
> 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

You haven't really given us a lot to work with here. I did a Google
search for pyExcelerator and tracked down it's sourceforge page, but
could not find any online documentation. And you haven't said what the
error is (although that wouldn't help me in this case, since I don't
know anything about pyExcelerator, it might help somebody who was
familiar with the package help you).

Still, a few thoughts: What is pyExcelerator.Workbook() expecting to be
passed as a parameter? HttpResponse is a reasonably specialised Django
class, so I would not be too surprised it doesn't act as a proxy for
whatever is expected by Workbook(). Also, you are passing in the class
itself (HttpResponse), rather than an instance of the class (response).
I'm not sure that is going to do what you want.

Malcolm



--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to [email protected]
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