Skip to main content

DocumentViewer Class

The control to publish (preview, print and export) documents in Windows Forms applications.

Namespace: DevExpress.XtraPrinting.Preview

Assembly: DevExpress.XtraPrinting.v25.2.dll

NuGet Package: DevExpress.Win.Printing

Declaration

public class DocumentViewer :
    PrintControl

Remarks

Important

To use the DocumentViewer control (or to customize DevExpress Reporting UI controls) in a WinForms application, you need a subscription that includes DevExpress WinForms UI Controls: WinForms, DXperience, or Universal. With the DevExpress Reporting Subscription, you can only use the ReportPrintTool and ReportDesignTool classes to display Print Preview and the End-User Report Designer dialogs. For more information, refer to: Installation - Subscriptions that Include Reporting Components.

To print an object using a DocumentViewer, assign it to the DocumentViewer.DocumentSource property.

To learn more, refer to the following tutorials.

See Also