-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMainWindow.xaml.vb
29 lines (24 loc) · 1.03 KB
/
MainWindow.xaml.vb
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
Imports System
Imports System.Windows
Imports XpoReportGalleryStorage
Imports DevExpress.Xpf.Core
Imports DevExpress.XtraReports.UI
Namespace ReportGalleryWPF
Public Partial Class MainWindow
Inherits Window
Private ReadOnly storage As XpoReportGalleryStorageBase
Public Sub New()
Me.InitializeComponent()
storage = New XpoReportGalleryStorageSimple()
' Uncomment this line to register a gallery storage that saves and loads the changed items only.
' storage = new XpoReportGalleryStorageAdvanced();
ApplicationThemeHelper.ApplicationThemeName = Theme.Office2016WhiteSEName
Me.reportDesigner.ReportGalleryOptions.Storage = storage
Me.reportDesigner.OpenDocument(New XtraReport())
AddHandler Closed, AddressOf OnClosed
End Sub
Private Overloads Sub OnClosed(ByVal sender As Object, ByVal e As EventArgs)
storage.Dispose()
End Sub
End Class
End Namespace