Skip to main content
All docs
V24.1

Document Viewer in WinUI Applications

  • 2 minutes to read

Important

The DevExpress WinUI product suite has been discontinued and is no longer available to new customers. We continue to monitor market-demands and the viability of WinUI as a desktop development platform. Should demand increase and market conditions change, we will reconsider our decision.

Existing Users: The DevExpress WinUI product line was available as part of a free product offer that expired on June 1, 2024. If you registered for the free offer before June 1, 2024 you can download the DevExpress WinUI product suite by visiting the DevExpress Client Center.

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

Demos

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

System Requirements

Review the following help topic for information on DevExpress WinUI controls system requirements: DevExpress WinUI Controls - Prerequisites.

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.