Skip to content

DevExpress-Examples/reporting-wpf-load-prnx-document

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

56 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Reporting for WPF - How to load a DevExpress Reporting Document (PRNX) to the Document Preview

This example illustrates how to preview a DevExpress Report document (*.PRNX) using the WPF Document Viewer.

The Document Preview Control supports the following document sources:

Example Overview

To preview a document:

private void button1_Click(object sender, System.EventArgs e) {
    // Create a report instance. 
    XtraReport1 report = new XtraReport1();

    // Generate a complete report document.
    report.CreateDocument();

    // Save the document to a file. 
    report.PrintingSystem.SaveDocument(@"...\Invoice.prnx");
}
documentPreview.DocumentSource = @"...\Invoice.prnx";

Files to Review

Does this example address your development requirements/objectives?

(you will be redirected to DevExpress.com to submit your response)

About

Load the saved XtraReport document (*.prnx) in the DocumentPreview control

Topics

Resources

License

Stars

Watchers

Forks

Contributors 4

  •  
  •  
  •  
  •