-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathForm1.vb
21 lines (19 loc) · 897 Bytes
/
Form1.vb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
Imports System
Imports DevExpress.XtraReports.UserDesigner
Namespace CustomFunctionForExpressionEditorExample
Partial Public Class Form1
Inherits DevExpress.XtraEditors.XtraForm
Public Sub New()
InitializeComponent()
End Sub
#Region "#formload"
Private Sub Form1_Load(ByVal sender As Object, ByVal e As EventArgs) Handles Me.Load
DevExpress.XtraReports.Expressions.CustomFunctions.Register(New NewLineConstant())
DevExpress.XtraReports.Expressions.CustomFunctions.Register(New CustomFormatFunction())
reportDesigner1.AddService(GetType(ReportExpressionEditorCustomizationService),
New CustomReportExpressionEditorCustomizationService())
reportDesigner1.OpenReport(New XtraReport1())
End Sub
#End Region
End Class
End Namespace