I'm developing web application on python. But the client wants a tool that exports current page to excel. So I had to write an extra code in every pages (views) that converts the table to excel using xlwt (python module).
But I have a better solution. It sends a current page's content html to the server and the server would respond this html table as excel type. Like this:
response['Content-Type'] = 'application/vnd.ms-excel; charset=utf-8'
Response.ContentType = "application/vnd.ms-excel"
This works quite good. But I'm curious about whether every browser supports this excel respond!?!?!
If not it would be a big problem to me :(
Or do browsers support it if only MS Excel or OpenOffice is installed on the client computer?
Any other "global" solution or ideas?