function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
rajesh kumar 10rajesh kumar 10 

Hi I have a doubt on export to excell in visualforce can any one suggest me doing this..

Hi i have written a code in visual force page but to that code i want to add "Export" button and when we click "export" button then the pageblockTable content should be converted into excell sheet. that means i have to take "pageblocktable" as reference for export button i am trying it but unfortunatly it is not coming can any one sugest me please.. 
can any one help me with the sample example please

thanks in advance

See if the below discussion post helps



Create a new page with the same controller and on new page create same page block table.

Now on new page their is attribut contrent type in <apex:page> component use that one to download file in CSV or excel format.

Now on old page click on export button call a funciton, this function should be write in your class which redirect to newlyc created page. Keep remember don't use rerender attribute on your function.