ReportViewerWebPart Class
Represents the Report Viewer Web Part.
Namespace: Microsoft.ReportingServices.SharePoint.UI.WebParts
Assembly: Microsoft.ReportingServices.SharePoint.UI.WebParts (in Microsoft.ReportingServices.SharePoint.UI.WebParts.dll)
Syntax
'Declaration
Public Class ReportViewerWebPart _
Inherits WebPart
'Usage
Dim instance As ReportViewerWebPart
public class ReportViewerWebPart : WebPart
public ref class ReportViewerWebPart : public WebPart
type ReportViewerWebPart =
class
inherit WebPart
end
public class ReportViewerWebPart extends WebPart
Remarks
You can add the ReportViewerWebPart to a SharePoint application and customize it using its programmatic interface. For example, use the DockToolBar() property to programmatically control where the toolbar is displayed. You can control the visibility of individual toolbar items using the ToolBarItemsDisplayMode() property.
To supply custom report parameters to the ReportViewerWebPart, use the GetParameters method to see which parameters are available on the report that is currently displayed, then use the OverrideParameters method to supply custom parameter values to the report. To programmatically specify a report path to the ReportViewerWebPart, you can use the ReportPath property.
The ReportViewerWebPart can also consume a report path and report parameters using Web Part connections. Using Web Part connections, an IWebPartRow Web Part can provide a report path to the ReportViewerWebPart, and an IFilterValues Web Part can provide a report parameter to the ReportViewerWebPart.
Inheritance Hierarchy
System.Object
System.Web.UI.Control
System.Web.UI.WebControls.WebControl
System.Web.UI.WebControls.Panel
System.Web.UI.WebControls.WebParts.Part
System.Web.UI.WebControls.WebParts.WebPart
WebPart
Microsoft.ReportingServices.SharePoint.UI.WebParts.ReportViewerWebPart
Thread Safety
Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.