-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathProgram.vb
More file actions
38 lines (32 loc) · 1.38 KB
/
Program.vb
File metadata and controls
38 lines (32 loc) · 1.38 KB
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
30
31
32
33
34
35
36
37
38
Imports Microsoft.VisualBasic
Imports System
Imports System.Windows.Forms
Imports DevExpress.Xpo
Imports DevExpress.XtraReports.Extensions
' ...
Namespace ReportStorageSample
Friend NotInheritable Class Program
Private Shared reportStorage_Renamed As ReportStorageExtension
Private Sub New()
End Sub
Public Shared ReadOnly Property ReportStorage() As ReportStorageExtension
Get
Return reportStorage_Renamed
End Get
End Property
<STAThread> _
Shared Sub Main()
Application.EnableVisualStyles()
Application.SetCompatibleTextRenderingDefault(False)
' This code registers a report storage that uses System.DataSet.
reportStorage_Renamed = New DataSetReportStorage()
' Uncomment these lines to register a report storage that uses XPO.
'XpoDefault.DataLayer = XpoDefault.GetDataLayer(DevExpress.Xpo.DB.AccessConnectionProvider.GetConnectionString("ReportStorage.mdb"), DevExpress.Xpo.DB.AutoCreateOption.DatabaseAndSchema)
'reportStorage_Renamed = New XpoReportStorage(New UnitOfWork())
' Uncomment this line to register a report storage, which uses Zip file.
'reportStorage_Renamed = New ZipReportStorage()
ReportStorageExtension.RegisterExtensionGlobal(reportStorage_Renamed)
Application.Run(New Form1())
End Sub
End Class
End Namespace