Share via


ReportViewer 类

包装用于**“ReportViewer”**控件的方法和属性。

继承层次结构

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

命名空间:  Microsoft.Reporting.WebForms
程序集:  Microsoft.ReportViewer.WebForms(在 Microsoft.ReportViewer.WebForms.dll 中)

语法

声明
Public Class ReportViewer _
    Inherits CompositeControl _
    Implements IScriptControl
用法
Dim instance As ReportViewer
public class ReportViewer : CompositeControl, 
    IScriptControl
public ref class ReportViewer : public CompositeControl, 
    IScriptControl
type ReportViewer =  
    class
        inherit CompositeControl
        interface IScriptControl
    end
public class ReportViewer extends CompositeControl implements IScriptControl

ReportViewer 类型公开以下成员。

构造函数

  名称 说明
公共方法 ReportViewer 初始化 ReportViewer 类的一个新实例。

页首

属性

  名称 说明
公共属性 AccessKey (从 WebControl 继承。)
受保护属性 Adapter (从 Control 继承。)
公共属性 AppRelativeTemplateSourceDirectory (从 Control 继承。)
公共属性 AsyncRendering 获取或设置一个 Boolean 值,该值指示当加载网页时报表的呈现是否与网页的其余部分异步。
公共属性 Attributes (从 WebControl 继承。)
公共属性 BackColor 获取或设置控件的报表区域的背景色。 (覆盖 WebControl.BackColor。)
公共属性 BindingContainer (从 Control 继承。)
公共属性 BorderColor (从 WebControl 继承。)
公共属性 BorderStyle (从 WebControl 继承。)
公共属性 BorderWidth (从 WebControl 继承。)
受保护属性 ChildControlsCreated (从 Control 继承。)
公共属性 ClientID (从 Control 继承。)
受保护属性 ClientIDSeparator (从 Control 继承。)
受保护属性 Context (从 Control 继承。)
公共属性 Controls (从 CompositeControl 继承。)
公共属性 ControlStyle (从 WebControl 继承。)
公共属性 ControlStyleCreated (从 WebControl 继承。)
公共属性 CssClass (从 WebControl 继承。)
公共属性 CurrentPage 获取或设置“ReportViewer”控件的活动报表的当前页。
受保护属性 DesignMode (从 Control 继承。)
公共属性 DocumentMapCollapsed 获取或设置文档结构图的折叠状态。
公共属性 DocumentMapWidth 获取或设置文档结构图的宽度。
公共属性 Enabled (从 WebControl 继承。)
公共属性 EnableTheming (从 WebControl 继承。)
公共属性 EnableViewState (从 Control 继承。)
受保护属性 Events (从 Control 继承。)
公共属性 ExportContentDisposition 获取或设置一个指示内容应以内联方式存在还是作为附件存在的值。
公共属性 Font (从 WebControl 继承。)
公共属性 ForeColor (从 WebControl 继承。)
公共属性 HasAttributes (从 WebControl 继承。)
受保护属性 HasChildViewState (从 Control 继承。)
公共属性 Height 获取或设置控件的高度。 (覆盖 WebControl.Height。)
公共属性 HyperlinkTarget 获取或设置单击报表中的超链接时返回的网页内容的目标窗口或框架。
公共属性 ID 指定控件的 ID。 (覆盖 Control.ID。)
受保护属性 IdSeparator (从 Control 继承。)
公共属性 InteractiveDeviceInfos 获取“ReportViewer”控件用于将报表区域中的报表呈现为 HTML 的 DeviceInfoCollection 对象。
公共属性 InteractivityPostBackMode 获取或设置一个 InteractivityPostBackMode 值,该值指示 ReportViewer 控件的回发模式。
公共属性 InternalBorderColor 获取或设置控件的内部边框颜色。
公共属性 InternalBorderStyle 获取或设置控件的内部边框样式。
公共属性 InternalBorderWidth 获取或设置控件的内部边框宽度。
受保护属性 IsChildControlStateCleared (从 Control 继承。)
受保护属性 IsEnabled (从 WebControl 继承。)
受保护属性 IsTrackingViewState (从 Control 继承。)
受保护属性 IsViewStateEnabled (从 Control 继承。)
公共属性 KeepSessionAlive 获取或设置一个 Boolean 值,该值指示当网页显示在浏览器中时是否阻止用户会话过期。
公共属性 LinkActiveColor 获取或设置控件中的活动链接的颜色。
公共属性 LinkActiveHoverColor 获取或设置当鼠标指针处于控件中的活动链接上时该链接的颜色。
公共属性 LinkDisabledColor 获取或设置控件中的禁用链接的颜色。
受保护属性 LoadViewStateByID (从 Control 继承。)
公共属性 LocalReport 获取当 ReportViewer 控件的 ProcessingMode 设置为 Local 时使用的 Report 类的实例。
公共属性 NamingContainer (从 Control 继承。)
公共属性 Page (从 Control 继承。)
公共属性 PageCountMode 获取或设置一个 PageCountMode 枚举值,该值指示当在报表区域中呈现报表时使用的默认页计数模式。
公共属性 Parent (从 Control 继承。)
公共属性 ProcessingMode 获取或设置“ReportViewer”控件的处理模式。
公共属性 PromptAreaCollapsed 获取或设置参数提示区域或凭据提示区域的折叠状态。
公共属性 ReportAreaContentType 获取一个 ReportAreaContent 对象,该对象表示报表区域的当前内容类型。
公共属性 SearchState 获取当前报表搜索操作的搜索文本和开始页。
公共属性 ServerReport 获取当 ReportViewer 控件的 ProcessingMode 设置为 Remote 时使用的 Report 类的实例。
公共属性 ShowBackButton 获取或设置一个指示“后退”按钮在工具栏上是否可见的值。
公共属性 ShowCredentialPrompts 获取或设置一个值,该值指示是否显示要求提供用户凭据的提示。
公共属性 ShowDocumentMapButton 获取或设置一个值,该值指示用于显示和折叠文档结构图的按钮是否在拆分栏上可见。
公共属性 ShowExportControls 获取或设置一个指示“Export”控件在工具栏上是否可见的值。
公共属性 ShowFindControls 获取或设置一个指示“查找”文本框在工具栏上是否可见的值。
公共属性 ShowPageNavigationControls 获取或设置一个指示页导航控件在工具栏上是否可见的值。
公共属性 ShowParameterPrompts 获取或设置一个指示是否显示参数提示的值。
公共属性 ShowPrintButton 获取或设置一个指示“打印”按钮在工具栏上是否可见的值。
公共属性 ShowPromptAreaButton 获取或设置一个值,该值指示用于显示和折叠提示区域的按钮是否在拆分栏上可见。
公共属性 ShowRefreshButton 获取或设置一个指示“刷新”按钮是否可见的值。
公共属性 ShowReportBody 获取或设置一个指示表体在控件上是否可见的值。
公共属性 ShowToolBar 获取或设置一个指示工具栏在控件上是否可见的值。
公共属性 ShowWaitControlCancelLink 获取或设置一个 Boolean 值,该值控制是否在等待控件中显示“取消”链接。
公共属性 ShowZoomControl 获取或设置一个指示“缩放”列表框是否可见的值。
公共属性 Site (从 Control 继承。)
公共属性 SizeToReportContent 获取或设置一个值,该值指示“ReportViewer”控件是否应自动调整大小以容纳报表内容。
公共属性 SkinID (从 WebControl 继承。)
公共属性 SplitterBackColor 获取或设置文档结构图拆分栏和提示区域拆分栏的背景色。
公共属性 Style (从 WebControl 继承。)
公共属性 TabIndex (从 WebControl 继承。)
受保护属性 TagKey 基础结构。 (覆盖 WebControl.TagKey。)
受保护属性 TagName (从 WebControl 继承。)
公共属性 TemplateControl (从 Control 继承。)
公共属性 TemplateSourceDirectory (从 Control 继承。)
公共属性 ToolBarItemBorderColor 获取或设置工具栏上某一项的边框颜色。
公共属性 ToolBarItemBorderStyle 获取或设置工具栏上某一项的边框样式。
公共属性 ToolBarItemBorderWidth 获取或设置工具栏项的边框宽度。
公共属性 ToolBarItemHoverBackColor 获取或设置当鼠标指针位于工具栏项上时该项的背景颜色。
公共属性 ToolBarItemPressedBorderColor 已过时。此属性不再适用,它存在的目的是向后兼容。“ReportViewer”控件不再使用按下的按钮。
公共属性 ToolBarItemPressedBorderStyle 已过时。此属性不再适用,它存在的目的是向后兼容。“ReportViewer”控件不再使用按下的按钮。
公共属性 ToolBarItemPressedBorderWidth 已过时。此属性不再适用,它存在的目的是向后兼容。“ReportViewer”控件不再使用按下的按钮。
公共属性 ToolBarItemPressedHoverBackColor 已过时。此属性不再适用,它存在的目的是向后兼容。“ReportViewer”控件不再使用按下的按钮。
公共属性 ToolTip (从 WebControl 继承。)
公共属性 UniqueID (从 Control 继承。)
受保护属性 ViewState (从 Control 继承。)
受保护属性 ViewStateIgnoresCase (从 Control 继承。)
公共属性 Visible (从 Control 继承。)
公共属性 WaitControlDisplayAfter 获取或设置当加载报表时在向用户显示等待控件之前的延迟(以毫秒为单位)。
公共属性 WaitMessageFont 获取在执行报表时显示的消息所采用的字体。
公共属性 Width 获取或设置控件的宽度。 (覆盖 WebControl.Width。)
公共属性 ZoomMode 获取或设置控件的缩放模式。
公共属性 ZoomPercent 获取或设置显示报表时要使用的缩放百分比。

页首

方法

  名称 说明
受保护方法 AddAttributesToRender (从 WebControl 继承。)
受保护方法 AddedControl (从 Control 继承。)
受保护方法 AddParsedSubObject (从 Control 继承。)
公共方法 ApplyStyle (从 WebControl 继承。)
公共方法 ApplyStyleSheetSkin (从 Control 继承。)
受保护方法 BuildProfileTree (从 Control 继承。)
受保护方法 ClearChildControlState (从 Control 继承。)
受保护方法 ClearChildState (从 Control 继承。)
受保护方法 ClearChildViewState (从 Control 继承。)
公共方法 CopyBaseAttributes (从 WebControl 继承。)
受保护方法 CreateChildControls 基础结构。 (覆盖 Control.CreateChildControls()。)
受保护方法 CreateControlCollection (从 Control 继承。)
受保护方法 CreateControlStyle 基础结构。 (覆盖 WebControl.CreateControlStyle()。)
公共方法 DataBind() (从 CompositeControl 继承。)
受保护方法 DataBind(Boolean) (从 Control 继承。)
受保护方法 DataBindChildren (从 Control 继承。)
公共方法 Dispose 基础结构。 (覆盖 Control.Dispose()。)
受保护方法 EnsureChildControls (从 Control 继承。)
受保护方法 EnsureID (从 Control 继承。)
公共方法 Equals (从 Object 继承。)
受保护方法 Finalize (从 Object 继承。)
公共方法 Find 从指定的页码开始搜索报表区域中的报表,以查找指定的文本字符串。
公共方法 FindControl(String) (从 Control 继承。)
受保护方法 FindControl(String, Int32) (从 Control 继承。)
公共方法 Focus (从 Control 继承。)
受保护方法 GetDesignModeState (从 Control 继承。)
公共方法 GetHashCode (从 Object 继承。)
公共方法 GetPageSettings 返回“ReportViewer”控件中用于打印当前报表的页设置。
公共方法 GetType (从 Object 继承。)
公共方法 HasControls (从 Control 继承。)
受保护方法 HasEvents (从 Control 继承。)
受保护方法 IsLiteralContent (从 Control 继承。)
公共方法 JumpToBookmark 将报表的焦点移至指定的书签。
公共方法 JumpToDocumentMapId 将文档结构图的焦点移至指定的节点。
受保护方法 LoadControlState (从 Control 继承。)
受保护方法 LoadViewState 基础结构。 (覆盖 WebControl.LoadViewState(Object)。)
受保护方法 MapPathSecure (从 Control 继承。)
受保护方法 MemberwiseClone (从 Object 继承。)
公共方法 MergeStyle (从 WebControl 继承。)
受保护方法 OnBubbleEvent (从 Control 继承。)
受保护方法 OnDataBinding (从 Control 继承。)
受保护方法 OnInit 基础结构。 (覆盖 Control.OnInit(EventArgs)。)
受保护方法 OnLoad (从 Control 继承。)
受保护方法 OnPreRender 基础结构。 (覆盖 Control.OnPreRender(EventArgs)。)
受保护方法 OnUnload (从 Control 继承。)
受保护方法 OpenFile (从 Control 继承。)
公共方法 PerformBack 通过“ReportViewer”控件从钻取报表向回导航至父报表。
受保护方法 RaiseBubbleEvent (从 Control 继承。)
受保护方法 RecreateChildControls (从 CompositeControl 继承。)
公共方法 RegisterPostBackControl “ReportViewer”控件注册指定的控件。“ReportViewer”控件在注册的控件导致回发时显示等待控件。
受保护方法 RemovedControl (从 Control 继承。)
受保护方法 Render 基础结构。 (覆盖 CompositeControl.Render(HtmlTextWriter)。)
公共方法 RenderBeginTag (从 WebControl 继承。)
受保护方法 RenderChildren (从 Control 继承。)
受保护方法 RenderContents (从 WebControl 继承。)
公共方法 RenderControl(HtmlTextWriter) (从 Control 继承。)
受保护方法 RenderControl(HtmlTextWriter, ControlAdapter) (从 Control 继承。)
公共方法 RenderEndTag (从 WebControl 继承。)
公共方法 Reset 将控件重置为其默认值。
公共方法 ResetPageSettings “ReportViewer”控件中当前报表的页设置还原为报表定义中的设置。
受保护方法 ResolveAdapter (从 Control 继承。)
公共方法 ResolveClientUrl (从 Control 继承。)
公共方法 ResolveUrl (从 Control 继承。)
受保护方法 SaveControlState (从 Control 继承。)
受保护方法 SaveViewState 基础结构。 (覆盖 WebControl.SaveViewState()。)
受保护方法 SetDesignModeState (从 Control 继承。)
公共方法 SetPageSettings 设置用于打印“ReportViewer”控件中当前报表的页设置。
公共方法 SetRenderMethodDelegate (从 Control 继承。)
公共方法 ToString (从 Object 继承。)
受保护方法 TrackViewState (从 WebControl 继承。)

页首

事件

  名称 说明
公共事件 Back 当用户从钻取报表向回导航至父报表时发生。
公共事件 BookmarkNavigation 当用户浏览至报表中的书签时发生。
公共事件 DataBinding (从 Control 继承。)
公共事件 Disposed (从 Control 继承。)
公共事件 DocumentMapNavigation 当选择了文档结构图节点时发生。
公共事件 Drillthrough 当选择了钻取项时发生。
公共事件 Init (从 Control 继承。)
公共事件 Load (从 Control 继承。)
公共事件 PageNavigation 当用户移至报表中的其他页时发生。
公共事件 PreRender (从 Control 继承。)
公共事件 ReportError 在报表中发现错误时发生。
公共事件 ReportRefresh 当刷新报表时发生。
公共事件 Search 当单击“查找”“查找下一个”按钮或以编程方式调用搜索操作时发生。
公共事件 Sort 当用户激活报表数据的排序时发生。
公共事件 SubmittingDataSourceCredentials 当用户使用数据源提示区域提交新数据源凭据时发生。
公共事件 SubmittingParameterValues 当报表参数值提交到报表服务器时发生。
公共事件 Toggle 当用户切换报表中的项的可见性时发生。
公共事件 Unload (从 Control 继承。)

页首

字段

  名称 说明
公共字段静态成员 MaximumPageCount 一个常数,该常数表示当前页计数模式为 Estimate 时报表中的最大页数。

页首

显式接口实现

  名称 说明
显式接口实现私有方法 IScriptControl.GetScriptDescriptors
显式接口实现私有方法 IScriptControl.GetScriptReferences
显式接口实现私有方法 IParserAccessor.AddParsedSubObject (从 Control 继承。)
显式接口实现私有属性 IControlBuilderAccessor.ControlBuilder (从 Control 继承。)
显式接口实现私有属性 IDataBindingsAccessor.DataBindings (从 Control 继承。)
显式接口实现私有属性 IExpressionsAccessor.Expressions (从 Control 继承。)
显式接口实现私有方法 IAttributeAccessor.GetAttribute (从 WebControl 继承。)
显式接口实现私有方法 IControlDesignerAccessor.GetDesignModeState (从 Control 继承。)
显式接口实现私有属性 IDataBindingsAccessor.HasDataBindings (从 Control 继承。)
显式接口实现私有属性 IExpressionsAccessor.HasExpressions (从 Control 继承。)
显式接口实现私有方法 ICompositeControlDesignerAccessor.RecreateChildControls (从 CompositeControl 继承。)
显式接口实现私有方法 IAttributeAccessor.SetAttribute (从 WebControl 继承。)
显式接口实现私有方法 IControlDesignerAccessor.SetDesignModeState (从 Control 继承。)
显式接口实现私有方法 IControlDesignerAccessor.SetOwnerControl (从 Control 继承。)
显式接口实现私有属性 IControlDesignerAccessor.UserData (从 Control 继承。)

页首

注释

该控件显示报表及其关联的用户界面。

该控件可以在本地处理模式或远程处理模式下工作。在本地处理模式中,控件在本地处理和呈现报表。在远程处理模式中,报表在报表服务器上处理,而在本地显示。远程处理模式需要报表服务器的 Microsoft SQL Server 2008 或更高版本实例。

提示

有关在 Web 场中或在没有会话状态的情况下使用“ReportViewer”Web 服务器控件的更多信息,请参见 ReportViewer 的 Web.config 设置

有关使用客户端 ReportViewer 控件以及使用客户端 API 的信息,请参见 Microsoft.Reporting.WebFormsClient.ReportViewer 类

线程安全

此类型的任何公共 static(在 Visual Basic 中为 Shared) 成员都是线程安全的。不保证所有实例成员都是线程安全的。

请参阅

参考

Microsoft.Reporting.WebForms 命名空间