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 

2x Salesforce MVP | Platform Champion | 18x Salesforce Certified | MuleSoft Certified | 8x Trailhead Ranger | TechForce Services | Sydney | Australia

Leave a Reply

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

*