Creating Excel Spreadsheets on the Fly!
I was shown this yesterday, I’ve always exported stuff to CSV and then re-imported it when I’ve wanted to get an Excel Spreadsheet out of my webserver
When you are sending your response content-type back simply return a table with the response type set as:
- application/vnd.ms-excel
You can even return formulas in this way by making one of the table cells similar to:
=SUM(F2:F3)
(obviously that requires a little more thought and working out where things are going to go in tables.)
NOTE: Put a border round your cells or else they’ll all come out blank with just the data in (i.e. gridlines off!)
What I'm Doing...
- Am I getting old, is it my stinking cold, or are captcha's getting harder? 1 day ago
- Still feeling pretty rotten but determined to get at least a couple of things off this list today! 1 day ago
- Not really looked properly at EC2 in a long time, but all @lgladdy 's tweets about it are pushing me in that direction again, any good tips? 1 day ago
- Android why can't I create a repition of a calendar event every other week? I can do weekly, every xth of the month but not every other! 2 days ago
- Get a private beta invite for Connect.Me. It's your reputation card for the social web http://t.co/ZWV66HMM 2 days ago
- More updates...


