ReportViewer 類別

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

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

語法

'宣告
<SRDescriptionAttribute("ReportViewerDescription")> _
<ParseChildrenAttribute(True)> _
<DesignerAttribute("Microsoft.Reporting.WebForms.ReportViewerDesigner, Microsoft.ReportViewer.WebDesign, Version=8.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")> _
<PersistChildrenAttribute(False)> _
Public Class ReportViewer
    Inherits CompositeControl
    Implements IPostBackEventHandler
'用途
Dim instance As ReportViewer
[SRDescriptionAttribute("ReportViewerDescription")] 
[ParseChildrenAttribute(true)] 
[DesignerAttribute("Microsoft.Reporting.WebForms.ReportViewerDesigner, Microsoft.ReportViewer.WebDesign, Version=8.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")] 
[PersistChildrenAttribute(false)] 
public class ReportViewer : CompositeControl, IPostBackEventHandler
[ParseChildrenAttribute(true)] 
[DesignerAttribute(L"Microsoft.Reporting.WebForms.ReportViewerDesigner, Microsoft.ReportViewer.WebDesign, Version=8.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")] 
[PersistChildrenAttribute(false)] 
public ref class ReportViewer : public CompositeControl, IPostBackEventHandler
/** @attribute SRDescriptionAttribute("ReportViewerDescription") */ 
/** @attribute ParseChildrenAttribute(true) */ 
/** @attribute DesignerAttribute("Microsoft.Reporting.WebForms.ReportViewerDesigner, Microsoft.ReportViewer.WebDesign, Version=8.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a") */ 
/** @attribute PersistChildrenAttribute(false) */ 
public class ReportViewer extends CompositeControl implements IPostBackEventHandler
SRDescriptionAttribute("ReportViewerDescription") 
ParseChildrenAttribute(true) 
DesignerAttribute("Microsoft.Reporting.WebForms.ReportViewerDesigner, Microsoft.ReportViewer.WebDesign, Version=8.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a") 
PersistChildrenAttribute(false) 
public class ReportViewer extends CompositeControl implements IPostBackEventHandler

備註

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

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

[!附註] 請參閱<Web.config Settings for ReportViewer>,以取得在 Web 伺服陣列中,或在無工作階段狀態時,使用 ReportViewer Web 伺服器控制項的相關資訊。

繼承階層

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

執行緒安全性

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

另請參閱

參考

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