Skip to main content
All docs
V24.2

CustomControlProviderBase.GetPrintableControl(CustomItemData, CustomItemExportInfo) Method

Gets a printable control corresponding to the specified custom dashboard item.

Namespace: DevExpress.DashboardWin

Assembly: DevExpress.Dashboard.v24.2.Win.dll

Declaration

protected virtual XRControl GetPrintableControl(
    CustomItemData customItemData,
    CustomItemExportInfo exportInfo
)

Parameters

Name Type Description
customItemData CustomItemData

An object that contains methods to work with custom item data

exportInfo CustomItemExportInfo

An object that contains custom item export settings.

Returns

Type Description
XRControl

A printable control corresponding to the specified custom dashboard item.

Remarks

Dashboard uses the Reporting framework to export dashboard layout and data. You can use native report XRControls to export custom items. The following code snippet uses the GetPrintableControl method to export the custom Funnel item:

using DevExpress.XtraReports.UI;
using DevExpress.DashboardCommon;
using DevExpress.DashboardWin;
//...
public class CustomFunnelControlProvider : CustomControlProviderBase{
  //...
  protected override XRControl GetPrintableControl(CustomItemData customItemData, CustomItemExportInfo info) {
        PrintableComponentContainer container = new PrintableComponentContainer();
        container.PrintableComponent = chart;
        return container;
  }
}

If you use a third-party control that does not have native support for our Printing Library, you can export it as an image instead.

See Also