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

Standard Report on VFpage using Iframe

I want to display Salesforce Standard Report on VF page. LIke 2 Report on 1 VF page side by side. So I Used iframe to Display Standard report on Vf page 

<apex:Iframe src="" scrolling="true" id="theIframe" />

But i gives me "Refused to display '' in a frame because it set 'X-Frame-Options' to 'sameorigin'."

error and does not display anything.

Can anyone help me how we can display Standard report on Vf page ?

Thank you in Advance 

NagendraNagendra (Salesforce Developers) 
Hi Jack,

Sorry for this issue you are facing.

If you want to add standard reports/dashboards to a VF page, you have to use an iframe for it.
You can set the source of the iframe to the URL of your report/dashboard.

<apex:page >
<apex:iframe src=”url of your report/dashboard” scrolling=”true” id=”theIframe”/>
You can use the below visual force tag to include the reports on to Vf page.
For more information of the above tag visit the below link. Also, give a try by disabling below setting and see if it works. This is not recommended but only temporary workaround while you fix the root cause.

User-added image
Hope this helps.

Kindly mark this as solved if the reply was helpful so that it gets removed from the unanswered queue which results in helping others who are encountering a similar issue.


Hi Nagendra,

I have already given this Clickjack permission on Salesforce But still it shows same error and I dont want to display report chart I want to display Report only