Calling a Report with a Subreport from a web page
I have created a SSRS report that uses a subreport. I runs fine in SSRS Report Manager, however I need to call the report from a web page. When I call the outer report from a web page will it be able to resolve the inner subreport? Any help with this question would be greatly appreciated. Best regards, Frank J. Reashore MCSD, MCDBA, MCTS
July 5th, 2012 4:03pm

Hi There You just need to put this code in your page load and see if it work for. If you have parameter in the main report make sure you need to pass the parameter from the web page. I am just putting a sample Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load Dim ReportNameFullName, ReportName As String Page.Session("EmployeeID") = "C" ReportNameFullName = "matrix.rdl" ReportName = "matrix" HyperLink1.NavigateUrl = String.Format("http://Yourreportserver/ReportServer/Test project/" + ReportNameFullName + "?/Test project/" + ReportName) + "&rs:Command=Render&rs:parameters=false&test=" & Page.Session("EmployeeID") ' End Sub Here Test project is the folder on my report server and your domain is the server name of your report server and test is my parameter name. I am putting screenshot for your help. Many Thanks Syed Qazafi Anjum Please click "Mark as Answer" if this resolves your problem or "Vote as Helpful" if you find it helpful. Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load Dim ReportNameFullName, ReportName As String Page.Session("EmployeeID") = "C" ReportNameFullName = "matrix.rdl" ReportName = "matrix" HyperLink1.NavigateUrl = String.Format("http://Yourreportserver/ReportServer/Test project/" + ReportNameFullName + "?/Test project/" + ReportName) + "&rs:Command=Render&rs:parameters=false&test=" & Page.Session("EmployeeID") ' End Sub
Free Windows Admin Tool Kit Click here and download it now
July 5th, 2012 4:50pm

This topic is archived. No further replies will be accepted.

Other recent topics Other recent topics