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
Ejaz MullaEjaz Mulla 

How to export only list view data into excel without list buttons and pagination?

Hello,
 I have a Export to Excel button on the top of List View. I am successfully able to export the list view into excel but it is also displaying the buttons and other pagination alphabets with the list view data in excel.
 How can i get rid of list view buttons in excel as i only want the list view data to be displayed. Please help.

Thanks in advance.
Ajay K DubediAjay K Dubedi
Hi Ejaz,
It is very simple ot export the page in excel one this you have to do is create another vf page same as the vf page which you have created and just remove all the buttons and pagination code from the page and only show that code whic you want to show on the excel sheet. and create a custom button on the vf page which you have creted and call the page as the return type of that button.
public pagereferece test(){
return Page.ExportPage.
}