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
Steven BrinegarSteven Brinegar 

How do you get data reports from visual force? Is there a reporting you can do off the visual force page?

SidhantSidhant

Hi, Steven-

You would need to write a controller, query the records, display the data in the tabular form or required form.

You can further save the report in .xls format using this attribute in apex:page tag: contentType="application/vnd.ms-excel#MyReport.xls", where 'MyReport' is the name of the file. This also could be made dynamic using controller. Or you can save the page as pdf using this attribute renderAs="pdf" in the apex:page.

Let me know if you need help with the controller and page.

Regards,

Sidhant