Hiding Tool Bar from the SSRS Report while using them in Dashboard (CRM 2011)

Hi,

We were showing a custom SSRS report inside an iframe in one of our CRM 2011 Dashboards. We wanted to hide the Tool Bar from the report.

To achieve that we need to pass the &rc:Toolbar=false parameter to our report’s URL, which we set for the IFrame.

http://localhost/ReportServer/Pages/ReportViewer.aspx?%2fCIBPhaseIIAnD_MSCRM%2fBEA&rs:Command=Render&rc:Toolbar=false

This hides the tool bar.

Now in one of our other SSRS reports, we were doing filtering based on a report parameter. So we wanted to show only the Parameter toolbar to appear and hide the other toolbar that shows Export, Zoom, Print etc. option.

To do so we first figured out the CSS class being used for it,

this turned out to be ToolBarButtonsCell

Now what we did next was to create a simple CSS file with the following content to hide the tool bar

.ToolBarButtonsCell{display: none;}

And placed that file at the following location of the server

C:\Program Files\Microsoft SQL Server\MSRS10.MSSQLSERVER\Reporting Services\ReportServer\Styles

Now next we had to use the rc:stylesheet parameter for our report’s URL and pass the name of the above CSS file just created ( for e.g. hideToolBar.css)

So our new URL was like this

http://localhost/ReportServer/Pages/ReportViewer.aspx?%2fCIBPhaseIIAnD_MSCRM%2fBEA&rs:Command=Render&rc:stylesheet=hideToolBar

After applying the new style sheet parameter to the report’s URL

Check out the following link

http://msdn.microsoft.com/en-us/library/ms152835.aspx (URL Access Parameter Reference)

Hope it helps.


Author: Nishant Rana

I love working in and sharing everything about Microsoft.NET technology !

9 thoughts on “Hiding Tool Bar from the SSRS Report while using them in Dashboard (CRM 2011)”

  1. the above example is for onpremises crm right,but am working on online crm how can i deploy the report in the server and hide the tool bar ,please help me on this

    Like

  2. Hi,
    I have an error when “&rc:Toolbar=false” is appended in the report viewer of Iframe in crm 2011 form.

    Do you have any alternate?

    Like

    1. Are you defintely using reportview.aspx and not viewer.aspx? I had the same thing because if you are using CRM to show reports normally and copy and paste that URL for the iFrame it tends to use viewer.aspx and not ReportViewer.aspx (and ReportViewer is in a different directory).

      I can do it by publishing the report “Externally” (from the Actions option when editing the report) and then working out what the URL would be for ReportViewer and putting that in the iFrame.

      Does that make sense?

      Like

Share your thoughts

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s