Salesforce Reports and Dashbord on a Custom Visualforce Page

We can achieve using apex iframe
<apex:iframe src=”/Reportor OR Dashboard ID?isdtp=nv” scrolling=”true” height=”1588px” width=”100%”/>

For Example:

<apex:page>
<apex:iframe src="https://cs14.salesforce.com/00Oc0000000Nzfe?isdtp=nv" scrolling="true" height="1588px" width="100%"/>
</apex:page>

00Oc0000000Nzfe -> Report Id
?isdtp=nv -> using this you can hide the Salesforce Header Section

you can get the results like:

report-dashboard

Written by 

Salesforce MVP | Lightning Champion | 16x Salesforce Certified | Application Architect | 6x Trailhead Ranger | Techforce Services | Australia

Leave a Reply

Your email address will not be published. Required fields are marked *

*