brucegonewild
Programmer
Hi there,
My users generate certain reports through our website. Once they're done creating these reports, they need to export these reports back to their local box. So what I need to do is:
1. Create a temp file and write the contents of the report to this file
2. Get user to "Save" this temp file to their local drive so they can later on open/print/modify the file.
As for writing to this temp file, I simply use: System.IO.Path.GetTempFileName() and I write the content of the report to it.
My problem is how do I get the users to actually save this file in their local machine?
Just to give you a background, the user clicks on a button saying "Export Report". The next thing, the report gets saved on a temp file in server. The last step should prompt the user to save the file to their local box...
Any help is MUCH appreciated...
cheers!
My users generate certain reports through our website. Once they're done creating these reports, they need to export these reports back to their local box. So what I need to do is:
1. Create a temp file and write the contents of the report to this file
2. Get user to "Save" this temp file to their local drive so they can later on open/print/modify the file.
As for writing to this temp file, I simply use: System.IO.Path.GetTempFileName() and I write the content of the report to it.
My problem is how do I get the users to actually save this file in their local machine?
Just to give you a background, the user clicks on a button saying "Export Report". The next thing, the report gets saved on a temp file in server. The last step should prompt the user to save the file to their local box...
Any help is MUCH appreciated...
cheers!