-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathForm1.cs
More file actions
21 lines (20 loc) · 807 Bytes
/
Form1.cs
File metadata and controls
21 lines (20 loc) · 807 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
using System;
namespace CustomFunctionForExpressionEditorExample
{
public partial class Form1 : DevExpress.XtraEditors.XtraForm
{
public Form1()
{
InitializeComponent();
}
private void Form1_Load(object sender, EventArgs e)
{
DevExpress.XtraReports.Expressions.CustomFunctions.Register(new NewLineConstant());
DevExpress.XtraReports.Expressions.CustomFunctions.Register(new CustomFormatFunction());
reportDesigner1.AddService(
typeof(DevExpress.XtraReports.UserDesigner.ReportExpressionEditorCustomizationService),
new CustomReportExpressionEditorCustomizationService());
reportDesigner1.OpenReport(new Reports.XtraReport1());
}
}
}