Re: Excel dumps to Office 10

2011-06-09 Thread Thomas Guettler
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

Re: Excel dumps to Office 10

2011-06-07 Thread Marwan Al-Sabbagh
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

Re: Excel dumps to Office 10

2011-06-06 Thread creecode
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

Excel dumps to Office 10

2011-06-06 Thread Bobby Roberts
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