Skip to main content

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

DxDocumentViewer Class

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.v24.2.JSBasedControls.dll

NuGet Package: DevExpress.Blazor.Reporting.JSBasedControls

#Declaration

public class DxDocumentViewer :
    DxDocumentViewerBase

#Remarks

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 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.

Document Viewer for Blazor

The following code adds the DxDocumentViewer control to a page, and loads the HelloWorld report:

razor
<DxDocumentViewer ReportName="HelloWorld" Height="1000px" Width="100%">
        <DxDocumentViewerTabPanelSettings Width="180" />
</DxDocumentViewer>

#Inheritance

Object
ComponentBase
DevExpress.Blazor.Reporting.Base.ReportingComponentBase
DxDocumentViewerBase
DxDocumentViewer
See Also