xtrareports-devexpress-dot-blazor-dot-reporting-f1642d94.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 in Blazor Server and standalone Blazor WebAssembly apps.
Namespace : DevExpress.Blazor.Reporting
Assembly : DevExpress.Blazor.Reporting.v25.2.JSBasedControls.dll
NuGet Package : DevExpress.Blazor.Reporting.JSBasedControls
public class DxDocumentViewer :
DxDocumentViewerBase
Public Class DxDocumentViewer
Inherits DxDocumentViewerBase
The Document Viewer is a component that displays an interactive preview of a document generated from a report that is designed on 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 additional information: Convert Third-Party Reports to DevExpress Reports.
The following code adds the DxDocumentViewer control to a page, and loads the TestReport report:
<DxDocumentViewer ReportName="TestReport" Height="1000px" Width="100%">
<DxDocumentViewerTabPanelSettings Width="180" />
</DxDocumentViewer>
The following topics show how to create a Blazor application with the Document Viewer using DevExpress and Microsoft templates:
Object ComponentBase DevExpress.Blazor.Reporting.Base.ReportingComponentBase DxDocumentViewerBase DxDocumentViewer
See Also