Back to Devexpress

Printing Links

wpf-9696-controls-and-libraries-printing-exporting-concepts-printing-links.md

latest3.8 KB
Original Source

Printing Links

  • Apr 04, 2019
  • 3 minutes to read

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.

  1. Create a link according to the type of data (SimpleLink, CollectionViewLink or PrintableControlLink);
  2. Call the required method of the PrintHelper class with the link instance passed to this method as a parameter.

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.

In addition to the above link types, you can create custom links inherited from the LinkBase class.

See Also

Document Preview