Skip to main content

TreeViewLink(PrintingSystem) Constructor

Initializes a new instance of the TreeViewLink class with the specified printing system.

Namespace: DevExpress.XtraPrintingLinks

Assembly: DevExpress.XtraPrinting.v23.2.dll

NuGet Packages: DevExpress.Win.Navigation, DevExpress.Win.Printing


public TreeViewLink(
    PrintingSystem ps


Name Type Description
ps PrintingSystem

A PrintingSystem object which specifies the printing system used to draw the current link. This value is assigned to the Link.PrintingSystem property.


This example illustrates the usage of printing links to print standard Windows Forms controls. The XtraPrinting library contains printing links specifically designed for several common controls. The following code links a Microsoft TreeView control to a printing system and generates a report which lists the TreeView nodes.

using DevExpress.XtraPrintingLinks;
using DevExpress.XtraPrinting;
// ...

    // Create a new link.
    TreeViewLink treeViewLink1 = new TreeViewLink(printingSystem1);

    // Assign the TreeView control to be printed.
    treeViewLink1.TreeView = tvwSource;

    // Add the link to the collection.
    printingSystem1.Links[0] = treeViewLink1;

    // Generate a report.

    // Show the report to the user.
    printingSystem1.PreviewFormEx.Owner = this;
See Also