Skip to main content
All docs

Document Viewer in WinUI Applications

  • 2 minutes to read

The DocumentViewer is a WinUI control that allows users to create documents from DevExpress reports, and display, save, export, and print them.

WinUI Document Viewer


Reporting WinUI demos are available in the Demo Center application. Review the following topic for more information: Reporting Demo Applications.

System Requirements

DevExpress WinUI controls have the following system requirements:

DevExpress WinUI Reporting requires an active DevExpress Reporting Subscription.

The Visual Studio Report Designer requires the DevExpress Reporting components installed on the development host.

The following NuGet packages are required:

Get Started

Review the following topic: Get Started with WinUI Reporting.

Common Tasks

Display Documents

Use the DocumentSource property to display a report document in the DocumentViewer.

Save Documents

Call the Save method to save the opened document in PRNX format to the specified file at the specified location.

Call the ShowSaveDialogCommand method or click the Save As button in the toolbar to open the Save As dialog.

Export Documents

Use the Export method to save the opened document in one of the following formats:

  • CSV
  • DOCX
  • HTML
  • Image
  • MHT
  • PDF
  • RTF
  • TXT
  • XLS
  • XLSX

You can also use the ShowExportDialogCommand or click the Export button in the toolbar to open the Export dialog.

Use the ShowPrintDialogCommand or click the Print button in the toolbar to open the Print dialog.