Hi,
That's bad news. I liked this pattern very much: Send the browser a HTML table
with content type application/vnd.ms-excel. This is much better than CSV.
If you find a solution, please post here.
Thomas
On 06.06.2011 17:10, Bobby Roberts wrote:
> hey -
>
> we are dumping results to excel
So what you are doing is producing HTML content, but send the user a file
with an xls extension. Before MS Excel used to open the xls file see that in
fact it doesn't have xls data in it but HTML and would try and take care of
it by converting the html to excel and presenting to the user. In more
r
Hello Bobby,
No answer just some thoughts. Did the MIME type change for Excel between
2003 and 2010?
If your file dump is in a text format and is delimited with tabs or commas,
can you change your MIME type to a plain text one? Although the apps may
ask to convert when opening files that are
hey -
we are dumping results to excel as such:
response = render_to_response('templatename_excel.html',
{'trs':trs,})
filename='myfilename.xls'
response['Content-Disposition'] = 'attachment; filename='
+ filename
response['Content-Type'] = 'applica
4 matches
Mail list logo