Back to Devexpress

DashboardViewer.AllowPrintDashboard Property

dashboard-devexpress-dot-dashboardwin-dot-dashboardviewer-1e723004.md

latest3.1 KB
Original Source

DashboardViewer.AllowPrintDashboard Property

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

Declaration

csharp
[DefaultValue(true)]
public bool AllowPrintDashboard { get; set; }
vb
<DefaultValue(True)>
Public Property AllowPrintDashboard As Boolean

Property Value

TypeDefaultDescription
Booleantrue

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

csharp
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

vb
' 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

Implements

AllowPrintDashboard

See Also

Printing and Exporting in the WinForms Viewer

DashboardViewer Class

DashboardViewer Members

DevExpress.DashboardWin Namespace