Share via


ReportViewer Class

Encapsulates the methods and properties used for the ReportViewer control.

Namespace: Microsoft.Reporting.WebForms
Assembly: Microsoft.ReportViewer.WebForms (in microsoft.reportviewer.webforms.dll)

Syntax

'Declaration
<ParseChildrenAttribute(True)> _
<DesignerAttribute("Microsoft.Reporting.WebForms.ReportViewerDesigner, Microsoft.ReportViewer.WebDesign, Version=10.0.0.0, Culture=neutral, PublicKeyToken=89845dcd8080cc91")> _
<PersistChildrenAttribute(False)> _
Public Class ReportViewer
    Inherits CompositeControl
    Implements IScriptControl
'Usage
Dim instance As ReportViewer
[ParseChildrenAttribute(true)] 
[DesignerAttribute("Microsoft.Reporting.WebForms.ReportViewerDesigner, Microsoft.ReportViewer.WebDesign, Version=10.0.0.0, Culture=neutral, PublicKeyToken=89845dcd8080cc91")] 
[PersistChildrenAttribute(false)] 
public class ReportViewer : CompositeControl, IScriptControl
[ParseChildrenAttribute(true)] 
[DesignerAttribute(L"Microsoft.Reporting.WebForms.ReportViewerDesigner, Microsoft.ReportViewer.WebDesign, Version=10.0.0.0, Culture=neutral, PublicKeyToken=89845dcd8080cc91")] 
[PersistChildrenAttribute(false)] 
public ref class ReportViewer : public CompositeControl, IScriptControl
/** @attribute ParseChildrenAttribute(true) */ 
/** @attribute DesignerAttribute("Microsoft.Reporting.WebForms.ReportViewerDesigner, Microsoft.ReportViewer.WebDesign, Version=10.0.0.0, Culture=neutral, PublicKeyToken=89845dcd8080cc91") */ 
/** @attribute PersistChildrenAttribute(false) */ 
public class ReportViewer extends CompositeControl implements IScriptControl
ParseChildrenAttribute(true) 
DesignerAttribute("Microsoft.Reporting.WebForms.ReportViewerDesigner, Microsoft.ReportViewer.WebDesign, Version=10.0.0.0, Culture=neutral, PublicKeyToken=89845dcd8080cc91") 
PersistChildrenAttribute(false) 
public class ReportViewer extends CompositeControl implements IScriptControl

Remarks

This control shows the report and its associated user interface.

The control can work in either local or remote processing mode. In local processing mode, the control processes and renders the report locally. In remote processing mode, processing is done on a report server and displayed locally. The remote processing mode requires a Microsoft SQL Server 2008 or later instance of report server.

Note

For more information about using the ReportViewer Web server control in a Web farm or without session state, see Web.config Settings for ReportViewer.

For information on using the client-side ReportViewer control using the client-side API, see Microsoft.Reporting.WebFormsClient.ReportViewer Class.

Inheritance Hierarchy

System.Object
   System.Web.UI.Control
     System.Web.UI.WebControls.WebControl
       System.Web.UI.WebControls.CompositeControl
        Microsoft.Reporting.WebForms.ReportViewer

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.

See Also

Reference

ReportViewer Members
Microsoft.Reporting.WebForms Namespace