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

DocumentPreviewControl Class

A control used to publish (preview, print and export) documents in WPF applications.

Namespace: DevExpress.Xpf.Printing

Assembly: DevExpress.Xpf.Printing.v20.2.dll


public class DocumentPreviewControl :

The following members accept/return DocumentPreviewControl objects:


The DocumentPreviewControl allows you to choose between a Ribbon or Bars toolbar layout.


To create a Print Preview for publishing documents that are supplied by a specific source, do the following.

  1. Assign an appropriate document source to the DocumentViewerControl.DocumentSource property of the current DocumentPreviewControl. The following types of document sources are supported.

    • An object implementing the IReport interface.
    • An object implementing the ILink interface.
    • A Stream containing report document data.
    • A string containing a path to a file that stores report document data (a PRNX file).
  2. If you are using an IReport or ILink object as a document source, call the document source’s CreateDocument method to generate a preview.
See Also