User951945299 posted
Loading report from SSRS into Reportviewer with following code. Report loads fine but drill downs do not work.
Found some info that SESSIONID is changing on the server....supposedly if you hard code a SessionID on the URL this will fix the problem. I haven't been able to find syntax to do this in code below.
Also if you put the REPORTSERVERURL and REPORTPATH in the REPORTVIEWER settings it works with no problems...only doesn't work from code. But I need to work from code, especially if I want to pass parameters.
ANy Ideas? Seems to be a pretty common problem but no answer so far.
Dim
reportServerURL
As
String=
"http://vm-sql/ReportServer_RRCUSQL"
Dim
reportPath As
String=
"/WebServers/WebServers"
With
Me.ReportViewer1
.ProcessingMode =ProcessingMode.Remote
With
.ServerReport
.ReportServerUrl =
New
Uri(reportServerURL)
.ReportPath = reportPath
End
With
.ShowParameterPrompts =
False
.ShowPromptAreaButton =
False
Me.ReportViewer1.ServerReport.Refresh()
End
With