Link to home
Start Free TrialLog in
Avatar of friskyweasel
friskyweasel

asked on

Reporting Services - Hide Print Icon on Toolbar

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?



ASKER CERTIFIED SOLUTION
Avatar of SQL_SERVER_DBA
SQL_SERVER_DBA
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of friskyweasel
friskyweasel

ASKER

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

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