• Product Bundles

    DevCraft

    All Telerik .NET tools and Kendo UI JavaScript components in one package. Now enhanced with:

    • NEW: Design Kits for Figma
    • Online Training
    • Document Processing Library
    • Embedded Reporting for web and desktop
    Web
    Kendo UI UI for jQuery UI for Angular UI for React UI for Vue UI for ASP.NET AJAX UI for ASP.NET MVC UI for ASP.NET Core UI for Blazor UI for Silverlight UI for PHP UI for JSP
    Mobile
    UI for .NET MAUI UI for Xamarin
    Document Management
    Telerik Document Processing
    Desktop
    UI for .NET MAUI UI for WinUI UI for WinForms UI for WPF UI for UWP
    Reporting & Mocking
    Telerik Reporting Telerik Report Server Telerik JustMock
    Automated Testing
    Test Studio Test Studio Dev Edition
    CMS
    Sitefinity
    UI/UX Design
    Unite UX
    Debugging
    Fiddler Fiddler Everywhere Fiddler Classic Fiddler Jam FiddlerCap FiddlerCore
    Extended Reality
    UI for Unity XR
    Free Tools
    JustAssembly JustDecompile VB.NET to C# Converter Testing Framework
    View all products
  • Overview
  • Demos
    • What's New
    • Roadmap
    • Release History
  • Docs & Support
  • Pricing
  • Search
  • Shopping cart
    • Account Overview
    • Your Licenses
    • Support Center
    • Forum Profile
    • Payment Methods
    • Edit Profile
    • Log out
  • Login
  • Contact Us
  • Try now

Class ReportViewer

Inheritance
System.Object
ReportViewer
Namespace: Telerik.ReportViewer.WebForms
Assembly: Telerik.ReportViewer.WebForms.dll

Syntax

public class ReportViewer : CompositeControl, IParserAccessor

Constructors

ReportViewer()

Declaration
public ReportViewer()

Properties

DocumentMapVisible

Indicates whether the DocumentMap should be visible.

Declaration
public bool DocumentMapVisible { get; set; }
Property Value
System.Boolean

Height

Declaration
public override Unit Height { get; set; }
Property Value
System.Web.UI.WebControls.Unit

ParametersAreaVisible

Indicates whether the ParametersArea should be visible.

Declaration
public bool ParametersAreaVisible { get; set; }
Property Value
System.Boolean

ProgressText

Declaration
[Obsolete("Use Resources.ProcessingReportMessage property instead or the resource file.")]
public string ProgressText { get; set; }
Property Value
System.String

Report

Gets or sets the report displayed in the viewer.

Declaration
[Obsolete("Telerik.ReportViewer.WebForms.ReportViewer.Report property is now obsolete. Please use the Telerik.ReportViewer.WebForms.ReportViewer.ReportSource property instead. For more information, please visit: http://www.telerik.com/support/kb/reporting/general/q2-2012-api-changes-reportsources.aspx#aspnetviewer.")]
public IReportDocument Report { get; set; }
Property Value
IReportDocument

ReportBookID

Declaration
public string ReportBookID { get; set; }
Property Value
System.String

ReportSource

Gets or sets the ReportSource for the report displayed in the viewer.

Declaration
public ReportSource ReportSource { get; set; }
Property Value
ReportSource

See Also
ReportSource
UriReportSource
TypeReportSource
InstanceReportSource
XmlReportSource

Resources

Use to customize the texts for labels, tooltips and messages.

Declaration
public Resources Resources { get; }
Property Value
Resources

ShowDocumentMapButton

Indicates whether DocumentMap button should be visible.

Declaration
public bool ShowDocumentMapButton { get; set; }
Property Value
System.Boolean

ShowExportGroup

Indicates whether Export group should be visible.

Declaration
public bool ShowExportGroup { get; set; }
Property Value
System.Boolean

ShowHistoryButtons

Indicates whether the page navigation controls are visible.

Declaration
public bool ShowHistoryButtons { get; set; }
Property Value
System.Boolean

ShowNavigationGroup

Indicates whether the page navigation controls are visible.

Declaration
public bool ShowNavigationGroup { get; set; }
Property Value
System.Boolean

ShowParametersButton

Indicates whether Parameters button should be visible.

Declaration
public bool ShowParametersButton { get; set; }
Property Value
System.Boolean

ShowPrintButton

Indicates whether Print button should be visible.

Declaration
public bool ShowPrintButton { get; set; }
Property Value
System.Boolean

ShowPrintPreviewButton

Indicates whether PrintPreview button should be visible.

Declaration
public bool ShowPrintPreviewButton { get; set; }
Property Value
System.Boolean

ShowRefreshButton

Indicates whether the Refresh button should be visible.

Declaration
public bool ShowRefreshButton { get; set; }
Property Value
System.Boolean

ShowZoomSelect

Indicates whether the Zoom input box should be visible.

Declaration
[Obsolete("ZoomMode/ZoomPercent is obsolete and should not be used anymore.")]
public bool ShowZoomSelect { get; set; }
Property Value
System.Boolean

Skin

Gets or sets the name of the skin that is used by the viewer.

Declaration
public string Skin { get; set; }
Property Value
System.String

A string containing the name of the currently used skin. The default value is Default.

SkinsPath

Gets or sets the relative path of the folder containing the skins.

Declaration
public virtual string SkinsPath { get; set; }
Property Value
System.String

A string specifying the relative path to the folder which contains ReportViewer skins. The default value is "~/ReportViewer/Skins".

TagKey

Declaration
protected override HtmlTextWriterTag TagKey { get; }
Property Value
System.Web.UI.HtmlTextWriterTag

ToolbarVisible

Indicates whether the toolbar should be visible on the viewer.

Declaration
public bool ToolbarVisible { get; set; }
Property Value
System.Boolean

ViewMode

Specifies whether the viewer is in interactive or print preview mode.

Declaration
public ViewMode ViewMode { get; set; }
Property Value
ViewMode

Width

Declaration
public override Unit Width { get; set; }
Property Value
System.Web.UI.WebControls.Unit

ZoomMode

Gets or sets the zoom mode of the viewer.

Declaration
[Obsolete("ZoomMode/ZoomPercent is obsolete and should not be used anymore.")]
public ZoomMode ZoomMode { get; set; }
Property Value
ZoomMode

ZoomPercent

Gets or sets the percentage of zoom used for the report display.

Declaration
[Obsolete("ZoomMode/ZoomPercent is obsolete and should not be used anymore.")]
public int ZoomPercent { get; set; }
Property Value
System.Int32

Methods

CreateChildControls()

Declaration
protected override void CreateChildControls()

LoadViewState(Object)

Declaration
protected override void LoadViewState(object savedState)
Parameters
System.Object savedState

OnInit(EventArgs)

Declaration
protected override void OnInit(EventArgs e)
Parameters
System.EventArgs e

OnLoad(EventArgs)

Declaration
protected override void OnLoad(EventArgs e)
Parameters
System.EventArgs e

OnPreRender(EventArgs)

Declaration
protected override void OnPreRender(EventArgs e)
Parameters
System.EventArgs e

RecreateChildControls()

Declaration
protected override void RecreateChildControls()

RefreshData()

Refreshes the current report in the viewer. Last used parameter values are used.

Declaration
public void RefreshData()

RefreshReport()

Causes the viewer to clear the cache and render the report again.

Declaration
public void RefreshReport()

Render(HtmlTextWriter)

Declaration
protected override void Render(HtmlTextWriter writer)
Parameters
System.Web.UI.HtmlTextWriter writer

SaveViewState()

Declaration
protected override object SaveViewState()
Returns
System.Object

Was this article helpful?

Tell us how we can improve this article

Skip
Getting Started
  • Install Now
  • Online Demos
Support Resources
  • Documentation
  • Knowledge Base
  • Videos
  • Reporting Samples Repository
  • Reporting Release History
Community
  • Forums
  • Blogs
  • Reporting Feedback Portal

Copyright © 2018 Progress Software Corporation and/or its subsidiaries or affiliates.
All Rights Reserved.

Progress, Telerik, and certain product names used herein are trademarks or registered trademarks of Progress Software Corporation and/or one of its subsidiaries or affiliates in the U.S. and/or other countries. See Trademarks for appropriate markings.