Skip to main content

Printing Links

  • 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.

Links Overview

DXPrinting creates documents by linking data with templates (DataTemplate).

printing-links

Depending on data provider, templates are either provided by a link or by an associated control (e.g., when printing DevExpress grids).

Using Links to Print Data

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).

Link Types

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