You can add a Windows Forms control to a report at Visual Studio design time by copying and pasting this control from its Form designer. A WinControlContainer hosts this control after adding it to the report.
A report can contain any Windows Forms visual control that supports the .NET drawing engine (based on the Graphics class that provides support for GDI+). XtraReports cannot host Win32 or ActiveX components for this reason.
You can add a DevExpress WinForms control to a report using a PrintableComponentContainer. It enables printing documents created using printing links as well as objects that implement the IPrintable interface. The following DevExpress controls implement this interface.
Open the Visual Studio Toolbox (by pressing CTRL+ALT+X) and expand its DX.19.2: Report Controls tab. Drag the PrintableComponentContainer control from this tab and drop it onto the report's detail band.
Change the added container's modifier to public to be able to assign the required properties outside of the XtraReport class descendant scope.
// Create a new report instance.
XtraReport1 report = new XtraReport1();
// Link the required control with the PrintableComponentContainers of a report.
report.printableComponentContainer1.PrintableComponent = gridControl;
// Invoke a Print Preview for the created report document.
ReportPrintTool preview = new ReportPrintTool(report);
' Create a new report instance.
Dim report As New XtraReport1()
' Link the required control with the PrintableComponentContainers of a report.
report.printableComponentContainer1.PrintableComponent = gridControl
' Invoke a Print Preview for the created report document.
Dim preview As New ReportPrintTool(report)
The following image illustrates the resulting report document containing a WinForms control.
Embed DevExpress ASP.NET Controls
You can embed the following DevExpress web controls into a report using the corresponding exporter objects: