-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathLabelReport.cs
More file actions
29 lines (22 loc) · 866 Bytes
/
LabelReport.cs
File metadata and controls
29 lines (22 loc) · 866 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
using System.Text.Json;
namespace ReportWizardCustomizationServiceMvcExample.PredefinedReports {
public partial class LabelReport : DevExpress.XtraReports.UI.XtraReport {
public LabelReport() {
InitializeComponent();
}
public void ApplyCustomData(string customDataJson) {
Labels labels = JsonSerializer.Deserialize<Labels>(customDataJson);
xrLabel1.Text = labels.Label1;
xrLabel2.Text = labels.Label2;
xrLabel3.Text = labels.Label3;
Name = labels.ReportName;
DisplayName = labels.ReportName;
}
}
public class Labels {
public string Label1 { get; set; }
public string Label2 { get; set; }
public string Label3 { get; set; }
public string ReportName { get; set; }
}
}