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
m.ddn.sh89m.ddn.sh89 

hey! i have a visualforce page in which i get records after applying filters,means i get dynamic data on the visualforce page after the user apply desired filters I want to get the result in excell.

hey! i have a visualforce page in which i get records after applying filters,means i get dynamic data on the visualforce page after the user apply desired filters
I want to get the result in excell.
Each time some user applies filter and get the records in visualforce page->click on export to excell button->get excell file.
PLZ HELP
Sagar PareekSagar Pareek
Hi 
In you page's <apex:page> tag put an attribute
contentType="application/vnd.ms-excel#NameOfExcelFile.xls"

replace NameOfExcelFile with the desired name. 

Make sure after the filters are applied you open the result in different page with above attribute used.