A newer version of this page is available. Switch to the current version.

Document Viewer

The XtraPrinting Library provides a Print Preview to publish, customize, export and print documents in Windows Forms applications. The Print Preview contains tools for document navigation, zooming and scaling as well as modifying the document’s print and watermark settings.


You can add the Print Preview by dropping the DocumentViewer control from the Toolbox onto the form.

HowTo - ShowPreviewOnForm2.png

Use the DocumentViewer.DocumentSource property to specify an object that supplies the document to the Document Viewer.


The Document Viewer supports the following document sources: XtraReport, Printing System and RemoteDocumentSource objects.

When creating a Document Viewer, you can select the ribbon or standard toolbar as described in Document Viewer Toolbars.