dashboard-devexpress-dot-dashboardwin-dot-dashboardviewer-1e723004.md
Gets or sets whether end-users can print or export a dashboard.
Namespace : DevExpress.DashboardWin
Assembly : DevExpress.Dashboard.v25.2.Win.dll
NuGet Package : DevExpress.Win.Dashboard
[DefaultValue(true)]
public bool AllowPrintDashboard { get; set; }
<DefaultValue(True)>
Public Property AllowPrintDashboard As Boolean
| Type | Default | Description |
|---|---|---|
| Boolean | true |
true , if end-users can print/export a dashboard; otherwise, false.
|
The following code snippet (auto-collected from DevExpress Examples) contains a reference to the AllowPrintDashboard property.
Note
The algorithm used to collect these code examples remains a work in progress. Accordingly, the links and snippets below may produce inaccurate results. If you encounter an issue with code examples below, please use the feedback form on this page to report the issue.
winforms-dashboard-apply-master-filter-in-viewer/CS/Dashboard_SetMasterFilter/Form1.cs#L49
if (e.DashboardItemName.Contains("grid"))
viewer.AllowPrintDashboard = e.SelectedValues.Select(value => value[1].ToString()).Contains("Anne Dodsworth") ? false : true;
}
winforms-dashboard-apply-master-filter-in-viewer/VB/Dashboard_SetMasterFilter/Form1.vb#L45
' If the Master Filter includes Anne Dodsworth as Sales Person, disable print and export.
If e.DashboardItemName.Contains("grid") Then viewer.AllowPrintDashboard = If(e.SelectedValues.[Select](Function(value) value(1).ToString()).Contains("Anne Dodsworth"), False, True)
End Sub
See Also