Hi all,
I tried to export the data into .csv format.. and the below is how I do it:
container.REQUE ST.RESPONSE.set Header('Content-Type','text/csv')
container.REQUE ST.RESPONSE.set Header('Content-Disposition', 'attachment;fil ename=outputFil e.csv')
container.REQUE ST.RESPONSE.wri te(outputString )
The above works completely fine when I tested it in Firefox, but when I used IE, it will prompt user to save file as a 'Document' file type (& not as expected 'outputFile.csv '). What should I do so that if user uses IE, it will also result in automatic 'outputFile.csv ' prompting? Did I set the correct heading (i.e., setHeader)?
On the other hand, I believe that the generated format is still correct, in csv format.
Thanks a lot
Shige
I tried to export the data into .csv format.. and the below is how I do it:
container.REQUE ST.RESPONSE.set Header('Content-Type','text/csv')
container.REQUE ST.RESPONSE.set Header('Content-Disposition', 'attachment;fil ename=outputFil e.csv')
container.REQUE ST.RESPONSE.wri te(outputString )
The above works completely fine when I tested it in Firefox, but when I used IE, it will prompt user to save file as a 'Document' file type (& not as expected 'outputFile.csv '). What should I do so that if user uses IE, it will also result in automatic 'outputFile.csv ' prompting? Did I set the correct heading (i.e., setHeader)?
On the other hand, I believe that the generated format is still correct, in csv format.
Thanks a lot
Shige
Comment