Solved

Reporting Services - Hide Print Icon on Toolbar

Posted on 2007-12-04
4
6,602 Views
Last Modified: 2010-06-04
Hello all -

reporting services 2005:

Assuming we have zero access to the production reporting server, is there a simple way to hide the print icon in the reporting services toolbar without having to hide the entire toolbar?

I found a solution where it can be hidden with a custom .css file, but that file must be placed on the report server (we cannot access the production report server directly)

I also found that the reportviewer control is supposed to have the following property:
ShowPrintButton = true/false;
But we are accessing the report viewer control as follows in our .aspx pages, and this property is not available  in the code behind:

Referencing it like this:
<%@ Register TagPrefix="cc1" Namespace="Microsoft.Samples.ReportingServices" Assembly="ReportViewer" %>

and using it like this:
<cc1:ReportViewer id="RptViewer" runat="server" Width="100%" Height="100%" Toolbar="True" Parameters="true"></cc1:ReportViewer>

but in the code behind, RptViewer.xxxxxx  has no property for ShowPrintButton

any ideas on how to hide the print button given the above description of our issue?



0
Comment
Question by:friskyweasel
  • 2
  • 2
4 Comments
 
LVL 16

Accepted Solution

by:
SQL_SERVER_DBA earned 500 total points
ID: 20404161
0
 
LVL 16

Assisted Solution

by:SQL_SERVER_DBA
SQL_SERVER_DBA earned 500 total points
ID: 20404287
Also, here is Configuring Reportviewer toolbar
http://msdn2.microsoft.com/en-us/library/ms251670(VS.80).aspx
0
 

Author Comment

by:friskyweasel
ID: 20404366
hi sql server dba, and thanks for the responses...

i think that your solution would work for the first part of my question (hiding the print icon), but unfortunately not for the second part of my question "without having to hide the entire toolbar"

what i need to be able to do is hide only the print icon, but show the toolbar with all other features

0
 

Author Comment

by:friskyweasel
ID: 20589531
although this doesn't solve my exact problem (hiding the print icon without hiding the entire toolbar), i think SQL_SERVER_DBA's response could still help someone else out if they need to hide the entire toolbar

thanks for the responses
0

Featured Post

Efficient way to get backups off site to Azure

This user guide provides instructions on how to deploy and configure both a StoneFly Scale Out NAS Enterprise Cloud Drive virtual machine and Veeam Cloud Connect in the Microsoft Azure Cloud.

Question has a verified solution.

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

Introduction: When running hybrid database environments, you often need to query some data from a remote db of any type, while being connected to your MS SQL Server database. Problems start when you try to combine that with some "user input" pass…
Use this article to create a batch file to backup a Microsoft SQL Server database to a Windows folder.  The folder can be on the local hard drive or on a network share.  This batch file will query the SQL server to get the current date & time and wi…
Learn how to create flexible layouts using relative units in CSS.  New relative units added in CSS3 include vw(viewports width), vh(viewports height), vmin(minimum of viewports height and width), and vmax (maximum of viewports height and width).
As a trusted technology advisor to your customers you are likely getting the daily question of, ‘should I put this in the cloud?’ As customer demands for cloud services increases, companies will see a shift from traditional buying patterns to new…

896 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

17 Experts available now in Live!

Get 1:1 Help Now