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.
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
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
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.
9 thoughts on “Hiding Tool Bar from the SSRS Report while using them in Dashboard (CRM 2011)”
Thanks nishant………..good work
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?
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?
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
You can hide the sho/hide paramters button as well when setting MenuBarBkGnd to dispaly:none
Its not working for me !! any idea ??
That worked! Thank you tons and thanks for sharing your knowledge!
I tried this and I’m having issues. Any Suggestions?
Gives a no results found error