I currently have a script that pulls a little bit of data from a database and displays it on screen. On this results screen, I'd like to give my users an option to save the data they're seeing to a website.
What I had in mind was a link on the results screen, created from the path_info and query_string envrionment varialbes, that makes another query to reproduce what they're seeing on the screen. This link would pass an additional variable with the query string to let the script know it needs to create a spreadsheet on this time around.
The link seems to be working as I would expect (data does not display on the screen like it did the first time around), but I'm not sure how to get that recordset data into a spreadsheet. I'd prefer to have it just launch excel, or at least ask if they want to save or open the sheet, rather than displaying the spreadsheet within Internet Explorer.
Anyone got any suggestions?
What I had in mind was a link on the results screen, created from the path_info and query_string envrionment varialbes, that makes another query to reproduce what they're seeing on the screen. This link would pass an additional variable with the query string to let the script know it needs to create a spreadsheet on this time around.
The link seems to be working as I would expect (data does not display on the screen like it did the first time around), but I'm not sure how to get that recordset data into a spreadsheet. I'd prefer to have it just launch excel, or at least ask if they want to save or open the sheet, rather than displaying the spreadsheet within Internet Explorer.
Anyone got any suggestions?