.NET Tutorials, Forums, Interview Questions And Answers
Welcome :Guest
Sign In
Win Surprise Gifts!!!

Top 5 Contributors of the Month
Post New Web Links

Disable horizontal and/or vertical scrollbars on ReportViewer Webpart

Posted By:      Posted Date: September 21, 2010    Points: 0   Category :SharePoint

Hello everybody,

I have set up SSRS 2008 and SharePoint Foundation 2010 and try to build a website showing all kind of reports. But I do have problems to control the appearance of scrollbars in the webpart.

To make it easier to explain I created a report where all sizes (Page size, Interactive and Text body) have the similar size (width: 100mm and height: 50mm).

Next I made an empty Wiki Site with single column layout and inserted a Reportviewer Webpart based on the generated report. I set the height to 70mm and the width to 120mm.

Here is the result: http://img213.imageshack.us/img

View Complete Post

More Related Resource Links

2008 reportviewer - no vertical scrollbars in Firefox



The 2008 reportviewer (verion 10.x) does not show vertical scrollbars in Firefox. Does anyone know a fix?

The code used is very simple and works well in IE8 and IE9 beta. I have tried adding style attibutes but Firefox just won't show the vertical scrollbar.

<rsweb:ReportViewer ID="reportViewer" runat="server" Height="100%" Width="100%" Font-Names="Verdana"
      Font-Size="8pt" ProcessingMode="Remote" InteractiveDeviceInfos="(Collection)"
      WaitMessageFont-Names="Verdana" WaitMessageFont-Size="14pt">


How I disable vertical scroll bar of report viewer control on Web Form.


I'm displaying .rdlc report file using Report viewer control on Webform. If  I Fix height of viewer control and data is not same as to size of viewer control then it display one scrollbar on viewer control and second vertical scroll bar is coming on webpage.

 I want to off viewer vertical scrollbar or in simple word's I don't want to display two scroll bar with my report. Please guide me or send me reference if any.


How to Disable Webpart Close Rights

Hello, I have one group. I have given contibution rights to this group. user from this group can close & modify webpart. Is there any way I can take that right from user.  Thanks, Sam

horizontal navigation menu instead of vertical

Hello I'm a newbie and using the internet/publication site type. Is there a simple way to have the Navigation (menu) oriented in a horizontal with dropdown menus instead of vertical? It would also be nice if the horizontal navigation wouldn't not scroll with the rest of the page. Thanks! Matt==GP Blog== http://dynamicssmallbusiness.blogspot.com/ ==Free GP Addons/Customizations/Tips== http://landiscomputer.com/offer/1010_GP_Newsletter.htm ==GP Tweets== http://twitter.com/search?q=%23dyngp#search?q=%23dyngp

sql convert vertical table to horizontal (deep to wide)

Hi I have 2 tables, where one holds Name and address information in a wide format, second table is a deep version where i have the records with field names (i.e. Date Of Birth) in the value and then another field with the actual value. I need to merge both tables together to create a new 3rd table and have everything in a wide format, so name and address for one record plus another new column with Date of Birth, so in the end i would just have one row for a person. i am using sql 2008, i dont have any examples to show, which makes it difficult to explain. a visual example would be table 1 id   name  address1      address2  postalcode 100 john    1 anystreet  anywhere  125254 table 2 id  fieldname  fieldvalue 100 dateofbirth  1 jan 1900 100 age         10 100 mobile     123456789 new table should look like table 3 id   name  address1      address2  postalcode   dateofbirth  age  mobile 100 john    1 anystreet  anywhere  125254      1 jan 1900    10   123456789 i have a very large dataset so need something generic and fast as there are lots of different field names so i would need to add th

Different behavior of horizontal and vertical GridSplitter

I'm trying to learn WPF. While it does appear to be quite powerful and flexible, some things are also rather confusing. The GridSplitter is my current headsplitter... Take a look at this XAML: <Grid> <Grid.RowDefinitions> <RowDefinition MinHeight="50"/> <RowDefinition Height="Auto" /> <RowDefinition MinHeight="50" /> </Grid.RowDefinitions> <Grid.ColumnDefinitions> <ColumnDefinition MinWidth="50"></ColumnDefinition> <ColumnDefinition Width="Auto"></ColumnDefinition> <ColumnDefinition MinWidth="50"></ColumnDefinition> </Grid.ColumnDefinitions> <Button Grid.Row="0" Grid.Column="0" Margin="2">Top Left</Button> <Button Grid.Row="0" Grid.Column="2" Margin="2">Top Right</Button> <Button Grid.Row="2" Grid.Column="0" Margin="2">Bottom Left</Button> <Button Grid.Row="2" Grid.Column="2" Margin="2">Bottom Right</Button> <!-- <GridSplitter Grid.Row="0" Grid.Column="1" Grid.RowSpan="3" Width="3" HorizontalAlignment="Center" /> --> <GridSplitter Grid.Row="1" Gri

webbrwoser disable scrollbars without editing html?

I'm aware the surefire way to turn off the scrollbars in the WebBrowser control is by having the body tag of the html set to <body scrol="no">.
Is there any way to disable the scroll bars it in XAML or code?

ReportViewer webpart is not working after SharePoint 2010 upgrade


After upgrading to SharePoint 2010 and Reporting Services 2008 (separate servers), all our web part pages that have the ReportViewer web parts in them are not working.  The error we are getting is "Web Part Error: A Web Part or Web Form Control on this Page cannot be displayed or imported. The type could not be found or it is not registered as safe."  All the reports are working on the report server but not through the web parts.  We used Visual Studio 2005 to create these reports and they all work in MOSS 2007 that also ran Reporting Services 2005.  If we delete the web part with the error and put in the ReportViewer web part manually on the page in SharePoint 2010, the reports do work.  But there are too many reports to be doing this manually for every web part page.  We already tried making changes to the Handler Mappings but it did not resolve the errors.  As far as we can tell, all the DLLs are in the right places.  Any help or suggestions would be greatly appreciated.  Thanks.

Disable Export Options on ReportViewer using a Server Report


Is it possible to disable export options on a server report in the ReportViewer control without changing the reportserver.config file? 

I have the code to change a Local Report but not a Server Report.  We have a group of reports we only want to be able to export to PDF and TIFF while the other server reports should be exportable in all formats.

Reportviewer scrollbars


I have a reportviewer control on a webpage that is causing me a bit of hassle.

The problem is that it is showing white space where the vertical scrollbar would appear (i don't need the vertical scrollbar).  I've tried the following but it doesn't fix the problem:

AsyncRendering = false;


SizeToReportContent = true;

Can anybody point me in the right direction?


PS. I have done various searches on this an they all seem to point to the property settings above.

ReportViewer failing inside Visual WebPart in SharePoint 2010


I have a ReportViewer control inside a VS2010 Visual WebPart deployed in SharePoint 2010.

If I put the report inside an iFrame it works fine (just setting the src = the URL of the report).

If I put it into a ReportViewer I get:

The request failed with HTTP status 401: Unauthorized

There is a script error as well:

Webpage error details

User Agent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.1; WOW64; Trident/4.0; SLCC2; .NET CLR 2.0.50727; .NET4.0C; .NET CLR 3.5.30729; .NET CLR 3.0.30729; .NET4.0E)
Timestamp: Thu, 25 Nov 2010 16:31:21 UTC

Message: Sys.ArgumentNullException: Value cannot be null.
Parameter name: panelsCreated[3]
Line: 129
Char: 12
Code: 0
URI: http://sp1/ScriptResource.axd?d=-xH2htwpSITFBSwbFV7VDS5Q9mmVEgTgSvuk8Jnd0Aqfw1cDpd2fSDrxiYgThtNQaq_myOFBHF5amI3fSpKyzWC4_s-HZtrKUr2-4SPgMT-QTYS4o9bFW4nEbGrr672JSI6F-Bj9IwIMCeRG3jk4zDu2TszO2ivKeIwAwEZMMVRfONWH0&t=5c2f384e

I have deployed the webpart to a standard web application and it works fine.

Here's the entirety of the code (or the bit that matters)

RS Integrated Mode ReportViewer Webpart not working





I have setup RS in integrated mode, and i can access and view the reports by clicking on them in the SharePoint document library. However i would like to view some of the reports in webparts elsewhere on the site.  When i click to add a webpart i have the following selection of RS related webparts:


1. Report Explorer

2. Report Viewer

3. ReportViewerWebpart

4. ReportViewWebpart

5. SPExplorer

6. SPViewer

7. SQL Server Reporting Services Report Viewer


Number 2,3 and 6 all appear to be exactly the same, and in the toolpane for all 3 it asks me the URL for the report Manager and the path to the report.  The Manager no longer exists in Integrated Mode and i cant figure out therefore what i should enter here to display the report. (this worked fine to display the report when in Native Mode...)


Number 1 and 5 are a similar story.


Number 7 doesnt work at all - when i try and add the webpart it says:


"Unable to add selected webpart(s).

SQL Server Reporting Services Report Viewer:

Use Membership but bypass / disable password usage for users


I have an application that does LDAP authentication. The authentication is done on the code behind page of my Login.aspx page. Once the user passes LDAP authentication, a cookie is set and I redirect:

FormsAuthentication.RedirectFromLoginPage(UserName.Text, False)

I would like to setup membership in my application and keep track of some user information. But due to company security requirements, I cannot store user passwords on my application. That must stay on the LDAP server only.

Is there a way to store users but disable password storage on the aspnet_membership table?

Session problem with display of image in row of reportviewer


Hello techies...

I am new to this sql reporting service. But anyhow by surfing I am able to bind the report but i was stuck in image display.

Anyways, i also managed that. But the real problem is whenever i was keeping a image control in rdlc report i was having session prob. If i remove the image control then as usual report works fine.

Please suggest me some solution.... either for session problem or for image display. I am keeping the image name in database but for binding the rdlc report i am using a store procedure which return the path (static) concating with the image name(kept in database).

Hope to find a solution .....

(Microsoft.Reporting.WebForms.ReportViewer) is not compatible with the type of control (Microsoft.Re


 I am trying to use ReportViewer 9 in Visual Studio 8 but I get this error when I try to run the page:

The base class includes the field 'ReportViewer1', but its type (Microsoft.Reporting.WebForms.ReportViewer) is not compatible with the type of control (Microsoft.Reporting.WebForms.ReportViewer).

Please help if you can!


Automatic Batch Printing in ReportViewer Remote Mode


Please help me, i have a properly working codes that is capable of the following:

1. Printing of Reports from ReportViewer without using the build-in print ICON in the actual ReportViewer. to view the working for the printing alone please click here.

2. Batch Printing by making a loop and placing a checkbox on the gridview where the needed paramerter (DataKeyNames ID) is retrieved then pass to the ReportViewer

This is my Code

foreach (GridViewRow row in GridView1.Rows)
            CheckBox chk = (CheckBox)row.FindControl("CheckBox2");
            if (chk.Checked)
                ReportViewer1.ServerReport.ReportServerUrl = new Uri("http://TestServer/ReportServer");
                ReportViewer1.ServerReport.ReportPath = @"/Tavern/StudPaymentReport";
                ReportViewer1.ProcessingMode = ProcessingMode.Remote;
                ReportParameter[] rptParams = new ReportParameter[1];

                rptParams[0] = new ReportParameter("ClientID", GridView1.DataKeys[row.RowIndex].Value.ToString());


ReportViewer :: Failed to enable constraints. But my statement is valid!!

  • A
  • n error has occurred during report processing.
      • Exception has been thrown by the target of an invocation.
        • Failed to enable constraints. One or more rows contain values violating non-null, unique, or foreign-key constraints.

    Why do I keep getting this error, even when not using any data on the report. When I run the query in SQL server I get a resultset. However when I try to render the report I get this error.


    ASP.NetWindows Application  .NET Framework  C#  VB.Net  ADO.Net  
    Sql Server  SharePoint  Silverlight  Others  All   

    Hall of Fame    Twitter   Terms of Service    Privacy Policy    Contact Us    Archives   Tell A Friend