to open a report in a new window
i looked up the following line of code
=window.open('" & Globals!ReportServerUrl & "?" & Globals!ReportFolder & "/" & "myreport" & "&rs:Command=Render&rc:toolbar=true','','width=800,height=600,left=10,top=10,resizable=1,menubar=no,location=no,status=no'),_top"
I do not understand what & Globals!ReportServerUrl & "?" & Globals!ReportFolder & "/" & "myreport" &
this implies.
I have the current report name as
http://houapps277/ReportServer/Pages/ReportViewer.aspx?%2fIMS-Reports%2fCR000648
and I need to jump to
http://houapps277/ReportServer/Pages/ReportViewer.aspx?%2fIMS-Reports%2fCR000699
both reports are in same folder IMS-Reports.
Thanks
"javascript:void window.open('ReportViewer.aspx? %2fCR000699', '_top', 'location=0, menubar=0, toolbar=0, resizable=1, width=800')"
use the above code.
In reportviewer.aspx page you need to write the code as
rptViewer.ServerReport.ReportServerUrl = new Uri(http://Reportservername);
rptViewer.ServerReport.ReportPath = "/IMS-Reports/" + Request.QueryString[0];
rptViewer.ProcessingMode = ProcessingMode.Remote;
Hope it will help you
Rakam.
|||Thanks for the reply rakam,
Where do I write and store reportviewer.aspx?
Sorry for being illiterate here.
Thanks
|||Just use the following code
"javascript:void window.open('http://houapps277/ReportServer/Pages/ReportViewer.aspx?%2fIMS-Reports%2fCR000699', '_top', 'location=0, menubar=0, toolbar=0, resizable=1, width=800')"
hope it will work
sql
No comments:
Post a Comment