Поделиться через


ReportViewer Class

Encapsulates the methods and properties used for the ReportViewer control.

Namespace: Microsoft.Reporting.WinForms
Assembly: Microsoft.ReportViewer.WinForms (in microsoft.reportviewer.winforms.dll)

Syntax

'Declaration
<DesignerAttribute("Microsoft.Reporting.WinForms.ReportViewerDesigner, Microsoft.ReportViewer.Design, Version=10.0.0.0, Culture=neutral, PublicKeyToken=89845dcd8080cc91", GetType(IDesigner))> _
<DockingAttribute(DockingBehavior.Ask)> _
Public Class ReportViewer
    Inherits UserControl
'Usage
Dim instance As ReportViewer
[DesignerAttribute("Microsoft.Reporting.WinForms.ReportViewerDesigner, Microsoft.ReportViewer.Design, Version=10.0.0.0, Culture=neutral, PublicKeyToken=89845dcd8080cc91", typeof(IDesigner))] 
[DockingAttribute(DockingBehavior.Ask)] 
public class ReportViewer : UserControl
[DesignerAttribute(L"Microsoft.Reporting.WinForms.ReportViewerDesigner, Microsoft.ReportViewer.Design, Version=10.0.0.0, Culture=neutral, PublicKeyToken=89845dcd8080cc91", typeof(IDesigner))] 
[DockingAttribute(DockingBehavior::Ask)] 
public ref class ReportViewer : public UserControl
/** @attribute DesignerAttribute("Microsoft.Reporting.WinForms.ReportViewerDesigner, Microsoft.ReportViewer.Design, Version=10.0.0.0, Culture=neutral, PublicKeyToken=89845dcd8080cc91", System.ComponentModel.Design.IDesigner) */ 
/** @attribute DockingAttribute(DockingBehavior.Ask) */ 
public class ReportViewer extends UserControl
DesignerAttribute("Microsoft.Reporting.WinForms.ReportViewerDesigner, Microsoft.ReportViewer.Design, Version=10.0.0.0, Culture=neutral, PublicKeyToken=89845dcd8080cc91", System.ComponentModel.Design.IDesigner) 
DockingAttribute(DockingBehavior.Ask) 
public class ReportViewer extends UserControl

Remarks

This control shows the report and its associated user interface.

The control is able to 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.

Inheritance Hierarchy

System.Object
   System.MarshalByRefObject
     System.ComponentModel.Component
       System.Windows.Forms.Control
         System.Windows.Forms.ScrollableControl
           System.Windows.Forms.ContainerControl
             System.Windows.Forms.UserControl
              Microsoft.Reporting.WinForms.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.WinForms Namespace