[Expand]General Information
[Expand]WinForms Controls
[Expand]ASP.NET Controls and MVC Extensions
[Expand]ASP.NET Bootstrap Controls
[Expand]ASP.NET Core Bootstrap Controls
[Collapse]WPF Controls
  Prerequisites
 [Expand]What's Installed
 [Expand]Common Concepts
 [Expand]MVVM Framework
 [Collapse]Controls and Libraries
   Reporting
  [Expand]Data Grid
  [Expand]Ribbon, Bars and Menu
  [Expand]Charts Suite
  [Expand]Pivot Grid
  [Expand]Scheduler
  [Expand]Spreadsheet
  [Expand]Rich Text Editor
  [Expand]Tree List
  [Expand]Gauge Controls
  [Expand]Map Control
  [Expand]Layout Management
  [Expand]Windows Modern UI
  [Collapse]Printing-Exporting
   [Expand]Overview
   [Expand]Getting Started
   [Expand]Fundamental Concepts
   [Collapse]Concepts
     Printing Links
     Document Preview
     Backstage Print Preview
    [Expand]Exporting
   [Expand]Examples
  [Expand]Data Editors
  [Expand]Navigation Controls
  [Expand]Spell Checker
  [Expand]Property Grid
  [Expand]PDF Viewer
  [Expand]TreeMap Control
  [Expand]Diagram Control
  [Expand]Windows and Utility Controls
   Dialogs, Notifications and Panels
  [Expand]Scheduler (legacy)
 [Expand]Scaffolding Wizard
 [Expand]Localization
  Redistribution and Deployment
  Get More Help
 [Expand]API Reference
[Expand]Xamarin Controls
[Expand]Windows 10 App Controls
[Expand]Office File API
[Expand]Reporting
[Expand]Report and Dashboard Server
[Expand]Dashboard
[Expand]eXpressApp Framework
[Expand]CodeRush
[Expand]CodeRush Classic
[Expand]Cross-Platform Core Libraries
[Expand]Tools and Utilities
 End-User Documentation

Printing Links

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.

Expanded Links Overview

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

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

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

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

Expanded See Also

Is this topic helpful?​​​​​​​