I have designed a report and everything is fine except when I view it in my vb.net application. When I view the report through the normal Reporting Services portal my document map appears fine without issue. However when I run it through my application the document map does not appear and the button is not available.
Here is the setup
I have a sql table that stores
* ReportID
* Title
* Keywords
* Serverpath
I then have an aspx page that simply has the webform report viewer with the following code. So I have a data grid populated from the reportinfo table with a Link on each title that passes the ServerPath to the reportviewer page. The URL that is genereated after I recently added the commands to the end of my report path through suggestion of another forum and that still didn't resolve the issue. Anyone out there have any suggestions on how to get the document map to show in the reportviewer webform?
The only thing I can think of is it has 3 parameters is there something special I am missing?
URL Genereated
http://perfectassistant.director-software.com/adminpages/reports/reportviewer.aspx?Path=/PAData/Student%20Information/Member%20Ensemble%20Listing%20Report&rc:Toolbar=True&rc:DocMap=true&rc:Area=Report
Page Load Code
Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load
If Not IsPostBack Then
Dim rptPath As String
rptPath = Request("Path")
Dim rs As New ReportingService
ReportViewer1.ServerReport.ReportServerCredentials = New ReportViewerCredentials("USERNAME", "PASSWORD", "")
ReportViewer1.ServerReport.ReportServerUrl = New Uri("http://SERVERNAME.com/reportserver")
ReportViewer1.AsyncRendering = False
ReportViewer1.ShowDocumentMapButton = True
ReportViewer1.DocumentMapCollapsed = False
ReportViewer1.ServerReport.ReportPath = rptPath
End If
End Sub
Document Maps don't show when you have the HTML viewer control set to AsyncRendering=false.
See this article for an explanation why (it has to do with the fact that we don't use frames):
http://msdn2.microsoft.com/en-us/library/ms252090.aspx
No comments:
Post a Comment