wpf-9696-controls-and-libraries-printing-exporting-concepts-printing-links.md
This topic explains what the printing links are and how they are used to create documents that are ready to be previewed, printed and exported.
This topic consists of the following sections.
DXPrinting creates documents by linking data with templates (DataTemplate).
Depending on data provider, templates are either provided by a link or by an associated control (e.g., when printing DevExpress grids).
To create a document and publish it (print, export, or show it in a Document Preview window), perform the following steps.
All link types derive from the LinkBase class. From it, derives the TemplatedLink class that defines templates for the following document sections (that are similar to report bands in XtraReports).
The following link types are available in DXPrinting.
SimpleLink is used to create documents based on plain linear data. Its essential members are:
CollectionViewLink provides extra options to print objects, which implement the ICollectionView interface.
PrintableControlLink is specially intended to print DXGrid and Pivot Grid by DevExpress.
LegacyPrintableComponentLink is intended to print DevExpress controls for Windows Forms that implement the IPrintable interface.
CompositeLink allows you to combine content of several printing links in a single document. This link’s constructor accepts the collection of printing links (TemplatedLink descendants) to compose.
In addition to the above link types, you can create custom links inherited from the LinkBase class.
See Also