xtrareports-devexpress-dot-xtrareports-dot-web-77c4a7b3.md
A control that displays an interactive preview of a document generated from a report and allows the user to view, print and export the report document.
Namespace : DevExpress.XtraReports.Web
Assembly : DevExpress.XtraReports.v25.2.Web.WebForms.dll
NuGet Package : DevExpress.Web.Reporting
public class ASPxWebDocumentViewer :
ASPxWebClientUIControl,
IControlDesigner
Public Class ASPxWebDocumentViewer
Inherits ASPxWebClientUIControl
Implements IControlDesigner
The Web Document Viewer is a component that displays an interactive preview of a document generated from a report that is designed in the DevExpress Reporting platform. The Document Viewer allows the user to view, print, and export the report document.
The Document Viewer is designed to display only DevExpress Reports. Our reports use the XML-based report file format, which is not compatible with third-party reporting applications. We offer a utility to convert third-party reports to DevExpress format. Refer to the following help topic for more information: Convert Third-Party Reports to DevExpress Reports.
Tip
Use the XRRichText report control to display RTF and DOCX files, and the XRPdfContent report control to display PDF files in a report. You can use other DevExpress components to display different document types in your apps. Review the following help topic for more information: DevExpress Document Viewers for Web.
Main Features
The HTML5 Document Viewer includes the following main features:
Quick Start
To add a Web Document Viewer to your application, do the following:
In Visual Studio, expand the DX.25.2: Reporting Toolbox tab and drop the ASPxWebDocumentViewer control onto the page.
Assign a report to the Viewer using the corresponding option in the control’s smart tag (or call the ASPxWebDocumentViewer.OpenReport or ASPxWebDocumentViewer.OpenReportXmlLayout method).
In the application’s Web.config file, add the “resources” section as shown below.
To use the Document Viewer on mobile devices, enable the ASPxWebDocumentViewer.MobileMode property.
Run your application and view the result.
Additional Information
To learn more about using the Web Document Viewer, refer to the following topics:
Object Control WebControl ASPxWebControlBase ASPxWebControl ASPxWebClientUIControl ASPxWebDocumentViewer MVCxWebDocumentViewer
See Also
Document Viewer in ASP.NET Web Forms Reporting