Solved

ssrs 2012 with reportviewer v 10

Posted on 2013-01-07
4
934 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

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

It was really hard time for me to get the understanding of Delegates in C#. I went through many websites and articles but I found them very clumsy. After going through those sites, I noted down the points in a easy way so here I am sharing that unde…
In this article we will learn how to fix  “Cannot install SQL Server 2014 Service Pack 2: Unable to install windows installer msi file” error ?
This videos aims to give the viewer a basic demonstration of how a user can query current session information by using the SYS_CONTEXT function
Viewers will learn how to use the SELECT statement in SQL and will be exposed to the many uses the SELECT statement has.

695 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