The way I do this is to
1. save to JSON on the client-side
2. send the JSON to the server via XMLHTTP
3. on server, convert JSON to XML
4. use XSLT to create Excel compatible document and send back to
browser with correct MIME type specified so that it loads into Excel