Skip to main content

Link Class

Namespace: DevExpress.XtraPrinting

Assembly: DevExpress.XtraPrinting.v23.2.dll

NuGet Packages: DevExpress.Win.Navigation, DevExpress.Win.Printing



The XtraPrinting Library provides a unified approach to print components using its printing links technology, designed to create a ready-to-print document out of a given component.

To print a component, you can use descendants of the Link class. The following standard printing links are provided for the most popular Windows Forms controls.

DevExpress components that implement the IPrintable interface can be printed using the PrintableComponentLink.

To combine several components into one printing link, use the CompositeLink.

You can also create your own custom links. For a code example, see How to: Create a Custom Link to Print a ListView Control.

To fine tune a link’s printout, you can handle the following link events.

These events can also be used to create a document from scratch, by adding the necessary bricks to it. Within every document section, brick creation must start with the zero vertical coordinate.

To generate a document that is ready to print, call the Link.CreateDocument method.

See Also