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 as such:
> 
> 
>             response = render_to_response('templatename_excel.html',
> {'trs':trs,})
>             filename='myfilename.xls'
>             response['Content-Disposition'] = 'attachment; filename='
> + filename
>             response['Content-Type'] = 'application/vnd.ms-excel;
> charset=utf-8'
>             return response
> 
> 
> where trs is our record set.  This works fine for office 2003 and open
> office but we get an invalid format error when trying to open the item
> in office 2010... we can click OK on the alert box and the file opens
> but it is still annoying.  Do you have to do anything specifically for
> Excel 2010 to get that message to go away?
> 
> 

-- 
Thomas Guettler, http://www.thomas-guettler.de/
E-Mail: guettli (*) thomas-guettler + de

-- 
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 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.

Reply via email to