Avoiding scroll in repoirt explorer and report viewer
-
Thursday, March 29, 2012 5:03 AM
Hi
I have added report explorer and report viewer in a sharepoint page..
I could see in both the web parts , i have scroll which is making screen to look awkward.
Please help me how to avoid this...
Srivatsan
Regards,
All Replies
-
Friday, March 30, 2012 6:15 AMModerator
Hi Srivatsan,
You can set the web part height and width via changing the appearance of the Web Part, please see more info from below articles,
http://office.microsoft.com/en-us/sharepoint-server-help/modify-shared-web-parts-HA001160706.aspx
http://technet.microsoft.com/en-us/library/bb326214(v=sql.90).aspx
Daniel Yang
TechNet Community Support
-
Saturday, March 31, 2012 1:55 AM
Hi !
Thanks for your reply but even if you increase the height u cant avoid scroll..
Scroll always persists inside the webpart and also outside the webpart.
Regards,
-
Wednesday, April 11, 2012 8:35 PM
Add a Content editor webpart to the page and use the following jQuery-code:
<script type="text/javascript"src="http://yourSiteURl/_layouts/jquery-1.7.1.min.js"></script>
<script type="text/javascript">
function RapportIframeComplete(){
if (RapportIframe[0].readyState!= "complete") {
setTimeout("RapportIframeComplete();",100); }
else {
jQuery(RapportIframe[0]).attr('style','overflow:hidden;height:1750px;width:800px');}
}
jQuery(document).ready(function(){
RapportIframe = jQuery('iframe[id^=ReportFrame]');
RapportIframeComplete();
});
</script>I uploaded jQuery to the layouts-folder of Sharepoint. Set the Reportviewer webpart to async rendering. The height and width in the code are set to a value that is big enough, so that nothing of my reports is hidden.

