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
recent versions like excel 2010 it correctly reports to the user that this
xls file does not have xls data in it but has html data. I suspect there
might have been security concerns with this.

you can use xlwt http://www.python-excel.org to build a proper xls file.
This is the more correct way of exporting to MS Excel. The approach you have
is kind of a hack that worked without complaint in older versions of MS
office.

Marwan

On Mon, Jun 6, 2011 at 6:40 PM, creecode <creec...@gmail.com> wrote:

> 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 in a text format, you'd need to
> test.
>
> Toodle-loooooooooo...........
> creecode
>
>  --
> You received this message because you are subscribed to the Google Groups
> "Django users" group.
> To view this discussion on the web visit
> https://groups.google.com/d/msg/django-users/-/Y0ZUcERGMUpGbUVK.
>
> 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.
>

-- 
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