Solved

ssrs 2012 with reportviewer v 10

Posted on 2013-01-07
4
933 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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

Optimizing Cloud Backup for Low Bandwidth

With cloud storage prices going down a growing number of SMBs start to use it for backup storage. Unfortunately, business data volume rarely fits the average Internet speed. This article provides an overview of main Internet speed challenges and reveals backup best practices.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Slowly Changing Dimension Transformation component in data task flow is very useful for us to manage and control how data changes in SSIS.
Ever needed a SQL 2008 Database replicated/mirrored/log shipped on another server but you can't take the downtime inflicted by initial snapshot or disconnect while T-logs are restored or mirror applied? You can use SQL Server Initialize from Backup…
Familiarize people with the process of utilizing SQL Server functions from within Microsoft Access. Microsoft Access is a very powerful client/server development tool. One of the SQL Server objects that you can interact with from within Microsoft Ac…
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.

732 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