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.
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.
Good Work…
LikeLike
Thanks nishant………..good work
LikeLike
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?
LikeLike
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?
LikeLike
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
LikeLike
You can hide the sho/hide paramters button as well when setting MenuBarBkGnd to dispaly:none
LikeLike
Its not working for me !! any idea ??
LikeLike
That worked! Thank you tons and thanks for sharing your knowledge!
LikeLike
I tried this and I’m having issues. Any Suggestions?
https://deletedouraddress/crmreports/viewer/viewer.aspx?action=run&helpID=AccountSales.rdl&id=%7b2CAA0018-0A28-E611-8EAB-005056A10000%7d&rs:Command=render&rc:Toolbar=false
Gives a no results found error
LikeLike