ReportViewer 類別

封裝 ReportViewer 控制項所用的方法和屬性。

命名空間: Microsoft.Reporting.WinForms
組件: Microsoft.ReportViewer.WinForms (在 microsoft.reportviewer.winforms.dll)

語法

'宣告
<DockingAttribute(DockingBehavior.Ask)> _
<SRDescriptionAttribute("ReportViewerDescription")> _
<DesignerAttribute("Microsoft.Reporting.WinForms.ReportViewerDesigner, Microsoft.ReportViewer.Design, Version=8.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a", GetType(IDesigner))> _
Public Class ReportViewer
    Inherits UserControl
'用途
Dim instance As ReportViewer
[DockingAttribute(DockingBehavior.Ask)] 
[SRDescriptionAttribute("ReportViewerDescription")] 
[DesignerAttribute("Microsoft.Reporting.WinForms.ReportViewerDesigner, Microsoft.ReportViewer.Design, Version=8.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a", typeof(IDesigner))] 
public class ReportViewer : UserControl
[DockingAttribute(DockingBehavior::Ask)] 
[DesignerAttribute(L"Microsoft.Reporting.WinForms.ReportViewerDesigner, Microsoft.ReportViewer.Design, Version=8.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a", typeof(IDesigner))] 
public ref class ReportViewer : public UserControl
/** @attribute DockingAttribute(DockingBehavior.Ask) */ 
/** @attribute SRDescriptionAttribute("ReportViewerDescription") */ 
/** @attribute DesignerAttribute("Microsoft.Reporting.WinForms.ReportViewerDesigner, Microsoft.ReportViewer.Design, Version=8.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a", System.ComponentModel.Design.IDesigner) */ 
public class ReportViewer extends UserControl
DockingAttribute(DockingBehavior.Ask) 
SRDescriptionAttribute("ReportViewerDescription") 
DesignerAttribute("Microsoft.Reporting.WinForms.ReportViewerDesigner, Microsoft.ReportViewer.Design, Version=8.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a", System.ComponentModel.Design.IDesigner) 
public class ReportViewer extends UserControl

備註

這個控制項會顯示報表及其相關聯的使用者介面。這個控制項的設計階段外觀可以顯示一個參數區域、一個空白文件引導模式、一個工具列,以及一個報表區域。

控制項能夠以本機或遠端處理模式來運作。在本機處理模式中,控制項會在本機處理及轉譯報表。在遠端處理模式中,則是在報表伺服器處理,在本機顯示。遠端處理模式需要 Microsoft SQL Server 2005 的報表伺服器執行個體。

繼承階層

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

執行緒安全性

此類型的任何公用靜態 (在 Visual Basic 中為 Shared ) 成員為安全執行緒。任何執行個體成員皆不能保證是安全執行緒。

另請參閱

參考

ReportViewer 成員
Microsoft.Reporting.WinForms 命名空間