Skip to main content
A newer version of this page is available. .

How to: Preview, Export and Print an XtraReport

This topic demonstrates how to use the print preview to display the content of an XtraReport. To perform the following steps, the XtraReports Suite needs to be installed on your machine.

To get started with this tutorial, create a Windows Forms Application with a print preview, similar to the one created in the following tutorial: How to: Add a Print Preview to a Windows Forms Application.

To create a print preview for an XtraReport, do the following.

  1. Run Visual Studio 2012, 2013, 2015 or 2017 and create a new Windows Forms Application.
  2. Add a report to the application and construct the report layout.
  3. To display the report in a print preview, select the DocumentViewer control and click its smart tag. Next, expand the Document Source drop-down list, and select the report in the Project Reports category.

    printing-preview-xtrareport00

Run the application to preview the document. Use the ribbon menu options to print and/or export the document.

printing-preview-xtrareport01

See Also