-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathProgram.cs
More file actions
35 lines (29 loc) · 1.3 KB
/
Program.cs
File metadata and controls
35 lines (29 loc) · 1.3 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
using System;
using System.Windows.Forms;
using DevExpress.Xpo;
using DevExpress.XtraReports.Extensions;
// ...
namespace ReportStorageSample {
static class Program {
static ReportStorageExtension reportStorage;
public static ReportStorageExtension ReportStorage {
get {
return reportStorage;
}
}
[STAThread]
static void Main() {
Application.EnableVisualStyles();
Application.SetCompatibleTextRenderingDefault(false);
// This code registers a report storage that uses System.DataSet.
reportStorage = 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 = new XpoReportStorage(new UnitOfWork());
// Uncomment this line to register a report storage, which uses Zip file.
// reportStorage = new ZipReportStorage();
ReportStorageExtension.RegisterExtensionGlobal(reportStorage);
Application.Run(new Form1());
}
}
}