This repository has been archived by the owner on Oct 2, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
/
XtraReport1.vb
371 lines (367 loc) · 19.9 KB
/
XtraReport1.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
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
Imports System
Imports System.Collections.Generic
Imports System.Linq
Imports System.Web
Imports DevExpress.XtraReports.UI
Namespace ServerSide
Public Class XtraReport1
Inherits XtraReport
Public Sub New()
InitializeComponent()
End Sub
Private Sub InitializeComponent()
Me.components = New System.ComponentModel.Container()
Dim selectQuery1 As New DevExpress.DataAccess.Sql.SelectQuery()
Dim column1 As New DevExpress.DataAccess.Sql.Column()
Dim columnExpression1 As New DevExpress.DataAccess.Sql.ColumnExpression()
Dim table1 As New DevExpress.DataAccess.Sql.Table()
Dim column2 As New DevExpress.DataAccess.Sql.Column()
Dim columnExpression2 As New DevExpress.DataAccess.Sql.ColumnExpression()
Dim column3 As New DevExpress.DataAccess.Sql.Column()
Dim columnExpression3 As New DevExpress.DataAccess.Sql.ColumnExpression()
Dim column4 As New DevExpress.DataAccess.Sql.Column()
Dim columnExpression4 As New DevExpress.DataAccess.Sql.ColumnExpression()
Dim column5 As New DevExpress.DataAccess.Sql.Column()
Dim columnExpression5 As New DevExpress.DataAccess.Sql.ColumnExpression()
Dim column6 As New DevExpress.DataAccess.Sql.Column()
Dim columnExpression6 As New DevExpress.DataAccess.Sql.ColumnExpression()
Dim column7 As New DevExpress.DataAccess.Sql.Column()
Dim columnExpression7 As New DevExpress.DataAccess.Sql.ColumnExpression()
Dim column8 As New DevExpress.DataAccess.Sql.Column()
Dim columnExpression8 As New DevExpress.DataAccess.Sql.ColumnExpression()
Dim column9 As New DevExpress.DataAccess.Sql.Column()
Dim columnExpression9 As New DevExpress.DataAccess.Sql.ColumnExpression()
Dim column10 As New DevExpress.DataAccess.Sql.Column()
Dim columnExpression10 As New DevExpress.DataAccess.Sql.ColumnExpression()
Dim column11 As New DevExpress.DataAccess.Sql.Column()
Dim columnExpression11 As New DevExpress.DataAccess.Sql.ColumnExpression()
Dim resources As New System.ComponentModel.ComponentResourceManager(GetType(XtraReport1))
Me.sqlDataSource1 = New DevExpress.DataAccess.Sql.SqlDataSource(Me.components)
Me.topMarginBand1 = New DevExpress.XtraReports.UI.TopMarginBand()
Me.bottomMarginBand1 = New DevExpress.XtraReports.UI.BottomMarginBand()
Me.xrPageInfo1 = New DevExpress.XtraReports.UI.XRPageInfo()
Me.xrPageInfo2 = New DevExpress.XtraReports.UI.XRPageInfo()
Me.reportHeaderBand1 = New DevExpress.XtraReports.UI.ReportHeaderBand()
Me.xrLabel1 = New DevExpress.XtraReports.UI.XRLabel()
Me.groupHeaderBand1 = New DevExpress.XtraReports.UI.GroupHeaderBand()
Me.xrPanel1 = New DevExpress.XtraReports.UI.XRPanel()
Me.xrTable1 = New DevExpress.XtraReports.UI.XRTable()
Me.xrTableRow1 = New DevExpress.XtraReports.UI.XRTableRow()
Me.xrTableCell1 = New DevExpress.XtraReports.UI.XRTableCell()
Me.xrTableCell2 = New DevExpress.XtraReports.UI.XRTableCell()
Me.xrTableCell3 = New DevExpress.XtraReports.UI.XRTableCell()
Me.detailBand1 = New DevExpress.XtraReports.UI.DetailBand()
Me.xrTable2 = New DevExpress.XtraReports.UI.XRTable()
Me.xrTableRow2 = New DevExpress.XtraReports.UI.XRTableRow()
Me.xrTableCell4 = New DevExpress.XtraReports.UI.XRTableCell()
Me.xrTableCell5 = New DevExpress.XtraReports.UI.XRTableCell()
Me.xrTableCell6 = New DevExpress.XtraReports.UI.XRTableCell()
Me.Title = New DevExpress.XtraReports.UI.XRControlStyle()
Me.DetailCaption3 = New DevExpress.XtraReports.UI.XRControlStyle()
Me.DetailData3 = New DevExpress.XtraReports.UI.XRControlStyle()
Me.DetailData3_Odd = New DevExpress.XtraReports.UI.XRControlStyle()
Me.DetailCaptionBackground3 = New DevExpress.XtraReports.UI.XRControlStyle()
Me.PageInfo = New DevExpress.XtraReports.UI.XRControlStyle()
DirectCast(Me.xrTable1, System.ComponentModel.ISupportInitialize).BeginInit()
DirectCast(Me.xrTable2, System.ComponentModel.ISupportInitialize).BeginInit()
DirectCast(Me, System.ComponentModel.ISupportInitialize).BeginInit()
'
' sqlDataSource1
'
Me.sqlDataSource1.ConnectionName = "Northwind_Connection"
Me.sqlDataSource1.Name = "sqlDataSource1"
columnExpression1.ColumnName = "ProductID"
table1.MetaSerializable = Nothing
table1.Name = "Products"
columnExpression1.Table = table1
column1.Expression = columnExpression1
columnExpression2.ColumnName = "ProductName"
columnExpression2.Table = table1
column2.Expression = columnExpression2
columnExpression3.ColumnName = "SupplierID"
columnExpression3.Table = table1
column3.Expression = columnExpression3
columnExpression4.ColumnName = "CategoryID"
columnExpression4.Table = table1
column4.Expression = columnExpression4
columnExpression5.ColumnName = "QuantityPerUnit"
columnExpression5.Table = table1
column5.Expression = columnExpression5
columnExpression6.ColumnName = "UnitPrice"
columnExpression6.Table = table1
column6.Expression = columnExpression6
columnExpression7.ColumnName = "UnitsInStock"
columnExpression7.Table = table1
column7.Expression = columnExpression7
columnExpression8.ColumnName = "UnitsOnOrder"
columnExpression8.Table = table1
column8.Expression = columnExpression8
columnExpression9.ColumnName = "ReorderLevel"
columnExpression9.Table = table1
column9.Expression = columnExpression9
columnExpression10.ColumnName = "Discontinued"
columnExpression10.Table = table1
column10.Expression = columnExpression10
columnExpression11.ColumnName = "EAN13"
columnExpression11.Table = table1
column11.Expression = columnExpression11
selectQuery1.Columns.Add(column1)
selectQuery1.Columns.Add(column2)
selectQuery1.Columns.Add(column3)
selectQuery1.Columns.Add(column4)
selectQuery1.Columns.Add(column5)
selectQuery1.Columns.Add(column6)
selectQuery1.Columns.Add(column7)
selectQuery1.Columns.Add(column8)
selectQuery1.Columns.Add(column9)
selectQuery1.Columns.Add(column10)
selectQuery1.Columns.Add(column11)
selectQuery1.MetaSerializable = Nothing
selectQuery1.Name = "Products"
selectQuery1.Tables.Add(table1)
Me.sqlDataSource1.Queries.AddRange(New DevExpress.DataAccess.Sql.SqlQuery() { selectQuery1})
Me.sqlDataSource1.ResultSchemaSerializable = resources.GetString("sqlDataSource1.ResultSchemaSerializable")
'
' topMarginBand1
'
Me.topMarginBand1.HeightF = 100F
Me.topMarginBand1.Name = "topMarginBand1"
'
' bottomMarginBand1
'
Me.bottomMarginBand1.Controls.AddRange(New DevExpress.XtraReports.UI.XRControl() { Me.xrPageInfo1, Me.xrPageInfo2})
Me.bottomMarginBand1.HeightF = 100F
Me.bottomMarginBand1.Name = "bottomMarginBand1"
'
' xrPageInfo1
'
Me.xrPageInfo1.LocationFloat = New DevExpress.Utils.PointFloat(6F, 6F)
Me.xrPageInfo1.Name = "xrPageInfo1"
Me.xrPageInfo1.Padding = New DevExpress.XtraPrinting.PaddingInfo(2, 2, 0, 0, 96F)
Me.xrPageInfo1.PageInfo = DevExpress.XtraPrinting.PageInfo.DateTime
Me.xrPageInfo1.SizeF = New System.Drawing.SizeF(313F, 23F)
Me.xrPageInfo1.StyleName = "PageInfo"
'
' xrPageInfo2
'
Me.xrPageInfo2.Format = "Page {0} of {1}"
Me.xrPageInfo2.LocationFloat = New DevExpress.Utils.PointFloat(331F, 6F)
Me.xrPageInfo2.Name = "xrPageInfo2"
Me.xrPageInfo2.Padding = New DevExpress.XtraPrinting.PaddingInfo(2, 2, 0, 0, 96F)
Me.xrPageInfo2.SizeF = New System.Drawing.SizeF(313F, 23F)
Me.xrPageInfo2.StyleName = "PageInfo"
Me.xrPageInfo2.TextAlignment = DevExpress.XtraPrinting.TextAlignment.TopRight
'
' reportHeaderBand1
'
Me.reportHeaderBand1.Controls.AddRange(New DevExpress.XtraReports.UI.XRControl() { Me.xrLabel1})
Me.reportHeaderBand1.HeightF = 60F
Me.reportHeaderBand1.Name = "reportHeaderBand1"
'
' xrLabel1
'
Me.xrLabel1.LocationFloat = New DevExpress.Utils.PointFloat(6F, 6F)
Me.xrLabel1.Name = "xrLabel1"
Me.xrLabel1.Padding = New DevExpress.XtraPrinting.PaddingInfo(2, 2, 0, 0, 96F)
Me.xrLabel1.SizeF = New System.Drawing.SizeF(638F, 26F)
Me.xrLabel1.StyleName = "Title"
Me.xrLabel1.Text = "Products"
'
' groupHeaderBand1
'
Me.groupHeaderBand1.Controls.AddRange(New DevExpress.XtraReports.UI.XRControl() { Me.xrPanel1})
Me.groupHeaderBand1.GroupUnion = DevExpress.XtraReports.UI.GroupUnion.WithFirstDetail
Me.groupHeaderBand1.HeightF = 48F
Me.groupHeaderBand1.Name = "groupHeaderBand1"
'
' xrPanel1
'
Me.xrPanel1.Controls.AddRange(New DevExpress.XtraReports.UI.XRControl() { Me.xrTable1})
Me.xrPanel1.LocationFloat = New DevExpress.Utils.PointFloat(0F, 0F)
Me.xrPanel1.Name = "xrPanel1"
Me.xrPanel1.SizeF = New System.Drawing.SizeF(650F, 48F)
Me.xrPanel1.StyleName = "DetailCaptionBackground3"
'
' xrTable1
'
Me.xrTable1.LocationFloat = New DevExpress.Utils.PointFloat(0F, 20F)
Me.xrTable1.Name = "xrTable1"
Me.xrTable1.Rows.AddRange(New DevExpress.XtraReports.UI.XRTableRow() { Me.xrTableRow1})
Me.xrTable1.SizeF = New System.Drawing.SizeF(650F, 28F)
'
' xrTableRow1
'
Me.xrTableRow1.Cells.AddRange(New DevExpress.XtraReports.UI.XRTableCell() { Me.xrTableCell1, Me.xrTableCell2, Me.xrTableCell3})
Me.xrTableRow1.Name = "xrTableRow1"
Me.xrTableRow1.Weight = 1R
'
' xrTableCell1
'
Me.xrTableCell1.Name = "xrTableCell1"
Me.xrTableCell1.StyleName = "DetailCaption3"
Me.xrTableCell1.Text = "Product Name"
Me.xrTableCell1.Weight = 0.36220473069411058R
'
' xrTableCell2
'
Me.xrTableCell2.Name = "xrTableCell2"
Me.xrTableCell2.StyleName = "DetailCaption3"
Me.xrTableCell2.StylePriority.UseTextAlignment = False
Me.xrTableCell2.Text = "Unit Price"
Me.xrTableCell2.TextAlignment = DevExpress.XtraPrinting.TextAlignment.MiddleRight
Me.xrTableCell2.Weight = 0.26377953162560097R
'
' xrTableCell3
'
Me.xrTableCell3.Name = "xrTableCell3"
Me.xrTableCell3.StyleName = "DetailCaption3"
Me.xrTableCell3.StylePriority.UseTextAlignment = False
Me.xrTableCell3.Text = "Units On Order"
Me.xrTableCell3.TextAlignment = DevExpress.XtraPrinting.TextAlignment.MiddleRight
Me.xrTableCell3.Weight = 0.37401573768028845R
'
' detailBand1
'
Me.detailBand1.Controls.AddRange(New DevExpress.XtraReports.UI.XRControl() { Me.xrTable2})
Me.detailBand1.HeightF = 25F
Me.detailBand1.Name = "detailBand1"
'
' xrTable2
'
Me.xrTable2.LocationFloat = New DevExpress.Utils.PointFloat(0F, 0F)
Me.xrTable2.Name = "xrTable2"
Me.xrTable2.OddStyleName = "DetailData3_Odd"
Me.xrTable2.Rows.AddRange(New DevExpress.XtraReports.UI.XRTableRow() { Me.xrTableRow2})
Me.xrTable2.SizeF = New System.Drawing.SizeF(650F, 25F)
'
' xrTableRow2
'
Me.xrTableRow2.Cells.AddRange(New DevExpress.XtraReports.UI.XRTableCell() { Me.xrTableCell4, Me.xrTableCell5, Me.xrTableCell6})
Me.xrTableRow2.Name = "xrTableRow2"
Me.xrTableRow2.Weight = 11.5R
'
' xrTableCell4
'
Me.xrTableCell4.DataBindings.AddRange(New DevExpress.XtraReports.UI.XRBinding() { New DevExpress.XtraReports.UI.XRBinding("Text", Nothing, "Products.ProductName")})
Me.xrTableCell4.Name = "xrTableCell4"
Me.xrTableCell4.StyleName = "DetailData3"
Me.xrTableCell4.Text = "xrTableCell4"
Me.xrTableCell4.Weight = 0.36220473069411058R
'
' xrTableCell5
'
Me.xrTableCell5.DataBindings.AddRange(New DevExpress.XtraReports.UI.XRBinding() { New DevExpress.XtraReports.UI.XRBinding("Text", Nothing, "Products.UnitPrice", "{0:C2}")})
Me.xrTableCell5.Name = "xrTableCell5"
Me.xrTableCell5.StyleName = "DetailData3"
Me.xrTableCell5.StylePriority.UseTextAlignment = False
Me.xrTableCell5.Text = "xrTableCell5"
Me.xrTableCell5.TextAlignment = DevExpress.XtraPrinting.TextAlignment.MiddleRight
Me.xrTableCell5.Weight = 0.26377953162560097R
'
' xrTableCell6
'
Me.xrTableCell6.DataBindings.AddRange(New DevExpress.XtraReports.UI.XRBinding() { New DevExpress.XtraReports.UI.XRBinding("Text", Nothing, "Products.UnitsOnOrder")})
Me.xrTableCell6.Name = "xrTableCell6"
Me.xrTableCell6.StyleName = "DetailData3"
Me.xrTableCell6.StylePriority.UseTextAlignment = False
Me.xrTableCell6.Text = "xrTableCell6"
Me.xrTableCell6.TextAlignment = DevExpress.XtraPrinting.TextAlignment.MiddleRight
Me.xrTableCell6.Weight = 0.37401573768028845R
'
' Title
'
Me.Title.BackColor = System.Drawing.Color.Transparent
Me.Title.BorderColor = System.Drawing.Color.Black
Me.Title.Borders = DevExpress.XtraPrinting.BorderSide.None
Me.Title.BorderWidth = 1F
Me.Title.Font = New System.Drawing.Font("Tahoma", 14F)
Me.Title.ForeColor = System.Drawing.Color.FromArgb((CInt((CByte(75)))), (CInt((CByte(75)))), (CInt((CByte(75)))))
Me.Title.Name = "Title"
'
' DetailCaption3
'
Me.DetailCaption3.BackColor = System.Drawing.Color.Transparent
Me.DetailCaption3.BorderColor = System.Drawing.Color.Transparent
Me.DetailCaption3.Borders = DevExpress.XtraPrinting.BorderSide.None
Me.DetailCaption3.Font = New System.Drawing.Font("Tahoma", 8F, System.Drawing.FontStyle.Bold)
Me.DetailCaption3.ForeColor = System.Drawing.Color.FromArgb((CInt((CByte(75)))), (CInt((CByte(75)))), (CInt((CByte(75)))))
Me.DetailCaption3.Name = "DetailCaption3"
Me.DetailCaption3.Padding = New DevExpress.XtraPrinting.PaddingInfo(6, 6, 0, 0, 100F)
Me.DetailCaption3.TextAlignment = DevExpress.XtraPrinting.TextAlignment.MiddleLeft
'
' DetailData3
'
Me.DetailData3.Font = New System.Drawing.Font("Tahoma", 8F)
Me.DetailData3.ForeColor = System.Drawing.Color.Black
Me.DetailData3.Name = "DetailData3"
Me.DetailData3.Padding = New DevExpress.XtraPrinting.PaddingInfo(6, 6, 0, 0, 100F)
Me.DetailData3.TextAlignment = DevExpress.XtraPrinting.TextAlignment.MiddleLeft
'
' DetailData3_Odd
'
Me.DetailData3_Odd.BackColor = System.Drawing.Color.FromArgb((CInt((CByte(231)))), (CInt((CByte(231)))), (CInt((CByte(231)))))
Me.DetailData3_Odd.BorderColor = System.Drawing.Color.Transparent
Me.DetailData3_Odd.Borders = DevExpress.XtraPrinting.BorderSide.None
Me.DetailData3_Odd.BorderWidth = 1F
Me.DetailData3_Odd.Font = New System.Drawing.Font("Tahoma", 8F)
Me.DetailData3_Odd.ForeColor = System.Drawing.Color.Black
Me.DetailData3_Odd.Name = "DetailData3_Odd"
Me.DetailData3_Odd.Padding = New DevExpress.XtraPrinting.PaddingInfo(6, 6, 0, 0, 100F)
Me.DetailData3_Odd.TextAlignment = DevExpress.XtraPrinting.TextAlignment.MiddleLeft
'
' DetailCaptionBackground3
'
Me.DetailCaptionBackground3.BackColor = System.Drawing.Color.Transparent
Me.DetailCaptionBackground3.BorderColor = System.Drawing.Color.FromArgb((CInt((CByte(206)))), (CInt((CByte(206)))), (CInt((CByte(206)))))
Me.DetailCaptionBackground3.Borders = DevExpress.XtraPrinting.BorderSide.Top
Me.DetailCaptionBackground3.BorderWidth = 2F
Me.DetailCaptionBackground3.Name = "DetailCaptionBackground3"
'
' PageInfo
'
Me.PageInfo.Font = New System.Drawing.Font("Tahoma", 8F, System.Drawing.FontStyle.Bold)
Me.PageInfo.ForeColor = System.Drawing.Color.FromArgb((CInt((CByte(75)))), (CInt((CByte(75)))), (CInt((CByte(75)))))
Me.PageInfo.Name = "PageInfo"
Me.PageInfo.Padding = New DevExpress.XtraPrinting.PaddingInfo(2, 2, 0, 0, 100F)
'
' XtraReport1
'
Me.Bands.AddRange(New DevExpress.XtraReports.UI.Band() { Me.topMarginBand1, Me.bottomMarginBand1, Me.reportHeaderBand1, Me.groupHeaderBand1, Me.detailBand1})
Me.ComponentStorage.AddRange(New System.ComponentModel.IComponent() { Me.sqlDataSource1})
Me.DataMember = "Products"
Me.DataSource = Me.sqlDataSource1
Me.StyleSheet.AddRange(New DevExpress.XtraReports.UI.XRControlStyle() { Me.Title, Me.DetailCaption3, Me.DetailData3, Me.DetailData3_Odd, Me.DetailCaptionBackground3, Me.PageInfo})
Me.Version = "17.1"
DirectCast(Me.xrTable1, System.ComponentModel.ISupportInitialize).EndInit()
DirectCast(Me.xrTable2, System.ComponentModel.ISupportInitialize).EndInit()
DirectCast(Me, System.ComponentModel.ISupportInitialize).EndInit()
End Sub
Private sqlDataSource1 As DevExpress.DataAccess.Sql.SqlDataSource
Private components As System.ComponentModel.IContainer
Private topMarginBand1 As TopMarginBand
Private bottomMarginBand1 As BottomMarginBand
Private xrPageInfo1 As XRPageInfo
Private xrPageInfo2 As XRPageInfo
Private reportHeaderBand1 As ReportHeaderBand
Private xrLabel1 As XRLabel
Private groupHeaderBand1 As GroupHeaderBand
Private xrPanel1 As XRPanel
Private xrTable1 As XRTable
Private xrTableRow1 As XRTableRow
Private xrTableCell1 As XRTableCell
Private xrTableCell2 As XRTableCell
Private xrTableCell3 As XRTableCell
Private detailBand1 As DetailBand
Private xrTable2 As XRTable
Private xrTableRow2 As XRTableRow
Private xrTableCell4 As XRTableCell
Private xrTableCell5 As XRTableCell
Private xrTableCell6 As XRTableCell
Private Title As XRControlStyle
Private DetailCaption3 As XRControlStyle
Private DetailData3 As XRControlStyle
Private DetailData3_Odd As XRControlStyle
Private DetailCaptionBackground3 As XRControlStyle
Private PageInfo As XRControlStyle
End Class
End Namespace