I am trying to use the ExporToCSV function in a visualforce page, but the sample code provided in the demo site doesn't work.
I am able to retrieve data but not able to save the exported file.
I tried to explain the issue in the attachment. Any help is much appreciated.