[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
 [Expand]What's Installed
 [Expand].NET Core 3 Support
 [Expand]Common Concepts
 [Expand]MVVM Framework
 [Collapse]Controls and Libraries
  [Expand]Data Grid
  [Expand]Ribbon, Bars and Menu
  [Expand]Charts Suite
  [Expand]Pivot Grid
  [Expand]Rich Text Editor
  [Expand]Tree List
  [Expand]Gauge Controls
  [Expand]Map Control
  [Expand]Layout Management
  [Expand]Windows Modern UI
   [Expand]Getting Started
   [Expand]Fundamental Concepts
     Printing Links
     Document Preview
     Backstage Print Preview
  [Expand]Data Editors
  [Expand]Navigation Controls
  [Expand]Spell Checker
  [Expand]Property Grid
  [Expand]PDF Viewer
  [Expand]TreeMap Control
  [Expand]Gantt Control
  [Expand]Diagram Control
  [Expand]Windows and Utility Controls
   Dialogs, Notifications and Panels
  [Expand]Scheduler (legacy)
 [Expand]Scaffolding Wizard
  Redistribution and Deployment
  Get More Help
 [Expand]API Reference
[Expand]Xamarin Controls
[Expand]Windows 10 App Controls
[Expand]Office File API
[Expand]Report and Dashboard Server
[Expand]eXpressApp Framework
[Expand]eXpress Persistent Objects
[Expand]CodeRush Classic
[Expand]Cross-Platform Core Libraries
[Expand]Tools and Utilities
 End-User Documentation
View this topic on docs.devexpress.com (Learn more)

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?​​​​​​​