+ Start a Discussion
sampath pallisampath palli 

How to display reports in vf page


I have an requirement that i am tryong to insert Records in to  object after completing insertation operation i want to display reports in vf page 

For example i am inserted 200 records in to x object after completing operation i want to generate report on insertation of 200 records which are successfully inserted and which records failed to insert

Thanks In Advance
Sampath Palli
Dhruv Gour 14Dhruv Gour 14
Duplicate  question

Amit Chaudhary 8Amit Chaudhary 8
You can display the report in the Visual force page. You can pass the report id in the apex: iframe src.
Use the below code snippets as reference
<apex:page showHeader="false" sidebar="false">
  <apex:iframe src="/00O900000020jcA"/>  <!—Report id -->
Please check below post
1) https://vanityforce.wordpress.com/2011/10/10/displaying-a-report-within-visualforce/
2) http://stackoverflow.com/questions/23397559/display-report-in-visualforce-page
<apex:outputPanel id="MissingAttRpt" >
<apex:iframe src="/00O0000000AAJlV?isdtp=lt" scrolling="true"  height="1588px"  width="100%"/>   

Let us know if this will help you
Nishant Singh PanwarNishant Singh Panwar
This hack to use iFrame seems to be not working now. Any alternates to this technique