You need to sign in to do that
Don't have an account?

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="https://cs72.salesforce.com/00O5D000000G2Rg" scrolling="true" id="theIframe" />
But i gives me "Refused to display 'https://cs72.salesforce.com/00O5D000000G2Rg' 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
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.
Ex. 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.
- https://developer.salesforce.com/docs/atlas.en-us.pages.meta/pages/pages_compref_analytics_reportChart.htm
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.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.
Thanks,
Nagendra
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