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

PrintableComponentLink Class

A link to print and export components that implement the IPrintable interface.

Namespace: DevExpress.XtraPrinting

Assembly: DevExpress.XtraPrinting.v24.2.dll

NuGet Package: DevExpress.Win.Printing

#Declaration

#Remarks

PrintableComponentLink is a link to print/export any component that supports the IPrintable interface. This component is specified by the link’s PrintableComponentLinkBase.Component property.

A control’s export using a PrintableComponentLink is performed in WYSIWYG export mode. Certain controls (e.g., GridControl) can be exported to XLS-XLSX formats in data-aware export mode. In data-aware mode, optimized for subsequent analysis of grid data within Microsoft Excel, various data shaping options that are applied within a source control are retained in output XLS-XLSX documents. See Export to XLS and XLSX Formats to learn more.

printing-system-links-printable-component-link-assign-rich-edit-control

Afterwards, you can create a document and either show its Print Preview (by calling the PrintableComponentLink.ShowPreview or PrintableComponentLink.ShowPreviewDialog method), or print it (by calling the PrintableComponentLink.Print or PrintableComponentLink.PrintDlg method).

The following DevExpress controls support the IPrintable interface.

Some controls (like RichEditControl) will ignore the page options provided by the corresponding printing links and use their own page options, instead.

For code samples, see the following resources:

See Also