+ Start a Discussion

How to download the csv file from visualforce page based click on links

i created a class ,component  and page for download the csv file from visualforce page. file is downloaded but file is corrupted. display the error message i.e Static Parse.


how can i solve this problem any one please help me






     Use the contentType="application/vnd.ms-excel#contacts.csv" with page attribute to open the excekl in csv file format.


Did this answer your question? If not, let me know what didn't work, or if so, please mark it solved. 


Hi, Navatar


thanks for u r Post.  but this not i am asking already i used content type this one work only pageloaded .



My Requirement is  i created one  grid visualforce page .that page contain 5 status columns. i want click on one columns of status i need to download the records into csv file . same like column 2,column3,column4,column5 . please help me


Now,I want the same fuction like you.Could you tell me how to do it? Thank you.