PrintableComponentContainer.PrintableComponent Property

Used to assign a Windows Forms control or a printing link to a PrintableComponentContainer at runtime.

Namespace: DevExpress.XtraReports.UI

Assembly: DevExpress.XtraReports.v18.2.dll

Declaration

public object PrintableComponent { get; set; }
Public Property PrintableComponent As Object

Property Value

Type Description
Object

A Object value.

The PrintableComponentContainer allows you to use various third-party visual elements in a report.

To print a control or a printing link, assign it to the PrintableComponentContainer.PrintableComponent property at runtime:

using System.Windows.Forms;

// Create a new report instance. 
XtraReport1 report = new XtraReport1();

// Link the required control (for instance, the Grid Control) with the PrintableComponentContainer of a report. 
report.printableComponentContainer1.PrintableComponent = gridControl;

// Invoke a Print Preview for the created report document.  
ReportPrintTool preview = new ReportPrintTool(report);
preview.ShowRibbonPreview();

See Using Third-Party Controls to learn about using the PrintableComponentContainer for embedding DevExpress controls to a report.

See Also