CustomControlProviderBase.GetPrintableControl(CustomItemData, CustomItemExportInfo) Method
Gets a printable control corresponding to the specified custom dashboard item.
Namespace: DevExpress.DashboardWin
Assembly: DevExpress.Dashboard.v24.1.Win.dll
NuGet Package: DevExpress.Win.Dashboard
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.