Solved

ssrs 2012 with reportviewer v 10

Posted on 2013-01-07
4
920 Views
Last Modified: 2013-01-13
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
Comment
Question by:Fraser_Admin
  • 2
4 Comments
 
LVL 25

Expert Comment

by:TempDBA
ID: 38752281
0
 
LVL 21

Expert Comment

by:Alpesh Patel
ID: 38753573
0
 

Accepted Solution

by:
Fraser_Admin earned 0 total points
ID: 38754566
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
 

Author Closing Comment

by:Fraser_Admin
ID: 38771565
This is what worked for me.
0

Featured Post

What Security Threats Are You Missing?

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

Join & Write a Comment

Suggested Solutions

Let's review the features of new SQL Server 2012 (Denali CTP3). It listed as below: PERCENT_RANK(): PERCENT_RANK() function will returns the percentage value of rank of the values among its group. PERCENT_RANK() function value always in be…
Introduction SQL Server Integration Services can read XML files, that’s known by every BI developer.  (If you didn’t, don’t worry, I’m aiming this article at newcomers as well.) But how far can you go?  When does the XML Source component become …
Using examples as well as descriptions, and references to Books Online, show the documentation available for date manipulation functions and by using a select few of these functions, show how date based data can be manipulated with these functions.
Using examples as well as descriptions, and references to Books Online, show the documentation available for datatypes, explain the available data types and show how data can be passed into and out of variables.

747 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

9 Experts available now in Live!

Get 1:1 Help Now