Skip to main content

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

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 complete the steps below, 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 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