-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathReportProvider.cs
More file actions
26 lines (25 loc) · 883 Bytes
/
ReportProvider.cs
File metadata and controls
26 lines (25 loc) · 883 Bytes
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
using DevExpress.XtraReports.Services;
using DevExpress.XtraReports.UI;
using DevExpress.XtraReports.Web.WebDocumentViewer;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
namespace T132094.Services {
public class CustomReportProvider : DevExpress.XtraReports.Services.IReportProvider {
public XtraReport GetReport(string id, ReportProviderContext context) {
switch (id) {
case "DefaultReport":
return new DefaultReport();
case "Categories":
return new CategoriesReport();
case "Products":
return new ProductsReport();
case "Orders":
return new OrdersReport();
default:
return null;
}
}
}
}