DxWasmDocumentViewer Class
A control that displays an interactive preview of a document generated from a report and allows the user to view, print, and export a report document in hosted Blazor WebAssembly apps.
Namespace: DevExpress.Blazor.Reporting
Assembly: DevExpress.Blazor.Reporting.v24.2.JSBasedControls.WebAssembly.dll
NuGet Package: DevExpress.Blazor.Reporting.JSBasedControls.WebAssembly
Declaration
Remarks
The 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 the 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.
You can start with a sample application created according to specifications in the following help topic: Get Started with Blazor Reporting.
The following code snippet adds the DxWasmDocumentViewer
control to a page and loads the TestReport
report:
<DxWasmDocumentViewer ReportName="TestReport" Height="calc(100vh - 130px)" Width="100%">
<DxDocumentViewerTabPanelSettings Width="340" />
<DxWasmDocumentViewerRequestOptions InvokeAction="DXXRDV"></DxWasmDocumentViewerRequestOptions>
</DxWasmDocumentViewer>
Use the DxDocumentViewerCallbacks to customize the control. Review the following topic for more information: Customization - Document Viewer for Blazor WebAssembly Hosted.