Re: weird error with MS Excel 2010 exports

2011-05-20 Thread chris hendrix
hi gabe - response = render_to_response('reports/trackingdump.html',{'trs':trs,}) filename='trackingdump.xls' response['Content-Disposition'] = 'attachment; filename=' + filename response['Content-Type'] = 'application/vnd.ms-excel; charset=utf-8' that's ho

Re: weird error with MS Excel 2010 exports

2011-05-20 Thread Gabriel Gunderson
On Thu, May 19, 2011 at 1:44 PM, Bobby Roberts wrote: > hi.  Regardless of how we try to export from a view into an excel > file, we get a weird msgbox reading: > > "The file you are trying to open, 'filenamehere.xls', is in a > different format than specified by the file extension.  Verify that >

weird error with MS Excel 2010 exports

2011-05-19 Thread Bobby Roberts
hi. Regardless of how we try to export from a view into an excel file, we get a weird msgbox reading: "The file you are trying to open, 'filenamehere.xls', is in a different format than specified by the file extension. Verify that the file is not corrupted and is from a trusted source before ope