Reputation: 21931
I have go through this question about the same topic in stack overflow but i did not get any accurate answers from the same that is why i have ask the question again
Hiding Toolbar and navigation in SSRS report inside an IFrame
I havce created a ssrs report and i have render it in an iframe using it's url
then problem is i need to hide the parameter details because it contains some sensitive infromations
i had tried something like below
$('#ifrme_reportView').attr('src',http://localhost/ReportServer/Pages/ReportViewer.aspx?%2MyReport%2fViewReport&rs:Command=Render&rc:Parameters=false&PID="+PID+"&ID="+ID+"")
but it still shows the parameters
but when i paste this url directly in browser then the parameter part is hidden
why it happneds like this ?? is there any way to hide the parameters from ssrs reports when it render it in an iframe ???
Upvotes: 0
Views: 4379
Reputation: 2042
You have rc:Paramaters=False
in your URL string twice. In my experience, having rc:Toolbar=False
in a URL twice causes the Toolbar to show regardless, so I suspect you're hitting the same problem.
Try:
$('#ifrme_reportView').attr('src',http://localhost/ReportServer/Pages/ReportViewer.aspx?%2MyReport%2fViewReport&rs:Command=Render&rc:Parameters=false&PID="+PID+"&ID="+ID+"")
Dan
Upvotes: 4