Document Viewer in WinUI Applications
- 2 minutes to read
Important
The DevExpress Win
Existing Users: The DevExpress Win
The DocumentViewer is a WinUI control that allows users to create documents from DevExpress reports, and display, save, export, and print them.
#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
- RTF
- TXT
- XLS
- XLSX
You can also use the ShowExportDialogCommand or click the Export button in the toolbar to open the Export dialog.
#Print Documents
Use the ShowPrintDialogCommand or click the Print button in the toolbar to open the Print dialog.