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
sugandhasugandha 

Displaying a chart with the report in a visual page

Hi i have used iframe to display the report on a visual force page but the chart was not visible on it and also only a small part of report was visible. Following is the code i have used.

<apex:page >
<apex:iframe src="/00O90000003Od1l"/> ------> this is the iD of report generated
</apex:page>

 

Kindly help

sfdcfoxsfdcfox
IFrames, by default, are very small. Make sure you're setting a width and height large enough to reasonably display the data.
Nickname_BravoNickname_Bravo

Try this:

 

You might want to play with the hight and width a little bit depending on how much you want to display. Scrolling will allow users to have the scroll bar on the right and bottom.

<iframe src="**insert source here**" frameborder="0" id="iframe" scrolling="yes" "style="width:100%;height:100%" height="100%"width="100%"></iframe>