[Okta Webinar] Learn how to a build a cloud-first strategyRegister Now

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 949
  • Last Modified:

ssrs 2012 with reportviewer v 10

I have a vs 2010 web application (asp.net) which is using reportviewer control v 10.  My report is one page long but as the user is viewing it and scrolling down I want the column headers to lock in place.  In my old environment (vs 2008 & ssrs 2005) it seemed to add a vertical scroll bar to acheive this.  I imported the ssrs report into the 2012 enviroment so maybe there is an option I'm missing.  Can someone lead me in the right direction?

Thanks
0
Fraser_Admin
Asked:
Fraser_Admin
  • 2
1 Solution
 
TempDBACommented:
0
 
Alpesh PatelAssistant ConsultantCommented:
0
 
Fraser_AdminAuthor Commented:
Found the solution.

Inside the rld (code view) Had to set <page><InteractiveHeight=0in>.  This forces it to stay on one page.

Then in the aspx page for the reportviewer control I had to set the following..
SizeToReportContent="false" AsyncRendering="true".  I also had the cssclass="fullheight" on the ReportViewer.


As soon as I set SizeToReoprtContent="false" my scrollbar appeared again to keep the headers locked.  

The following is also in the head section of the page.

<style type="text/css">  
     .fullheight{margin-bottom:60px;}
</style>
<script language="JavaScript" type="text/JavaScript">
        window.onload = function resize() {
           var viewer = document.getElementById("<%=ReportViewer1.ClientID %>");
           var docheight = document.body.clientHeight;
           if (viewer != null) {
                viewer.style.height = (docheight - 70) + "px";
           }
         }
</script>
0
 
Fraser_AdminAuthor Commented:
This is what worked for me.
0

Featured Post

VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now