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
Declaration
Related API Members
The following members accept/return DocumentPreviewControl objects:
Remarks
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.
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).
- If you are using an IReport or ILink object as a document source, call the document source’s CreateDocument method to generate a preview.