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

PrintableComponentLink Class

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

Namespace: DevExpress.XtraPrinting

Assembly: DevExpress.XtraPrinting.v20.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:

The following code snippets (auto-collected from DevExpress Examples) contain references to the PrintableComponentLink class.

Note

The algorithm used to collect these code examples remains a work in progress. Accordingly, the links and snippets below may produce inaccurate results. If you encounter an issue with code examples below, please use the feedback form on this page to report the issue.

See Also