home *** CD-ROM | disk | FTP | other *** search
- object frmGrouping: TfrmGrouping
- Left = 192
- Top = 107
- Width = 774
- Height = 480
- Caption = 'frmGrouping'
- Color = clBtnFace
- Font.Charset = DEFAULT_CHARSET
- Font.Color = clWindowText
- Font.Height = -11
- Font.Name = 'MS Sans Serif'
- Font.Style = []
- OldCreateOrder = False
- Scaled = False
- PixelsPerInch = 96
- TextHeight = 13
- object QuickRep1: TQuickRep
- Left = 0
- Top = 0
- Width = 816
- Height = 1056
- Frame.Color = clBlack
- Frame.DrawTop = False
- Frame.DrawBottom = False
- Frame.DrawLeft = False
- Frame.DrawRight = False
- DataSet = MasterQry
- Description.Strings = (
-
- 'This report uses two queries to demonstrate how to handle subto' +
- 'tals and group breaks.'
- ''
-
- 'Most grouping and totaling tasks can be accomplished without cod' +
- 'ing. This report does not have any code, everything is set by t' +
- 'he component properties.')
- Font.Charset = DEFAULT_CHARSET
- Font.Color = clWindowText
- Font.Height = -13
- Font.Name = 'Arial'
- Font.Style = []
- Functions.Strings = (
- 'PAGENUMBER'
- 'COLUMNNUMBER'
- 'REPORTTITLE')
- Functions.DATA = (
- '0'
- '0'
- #39#39)
- Options = [FirstPageHeader, LastPageFooter]
- Page.Columns = 1
- Page.Orientation = poPortrait
- Page.PaperSize = Letter
- Page.Values = (
- 127.000000000000000000
- 2794.000000000000000000
- 127.000000000000000000
- 2159.000000000000000000
- 127.000000000000000000
- 127.000000000000000000
- 0.000000000000000000)
- PrinterSettings.Copies = 1
- PrinterSettings.Duplex = False
- PrinterSettings.FirstPage = 0
- PrinterSettings.LastPage = 0
- PrinterSettings.OutputBin = Auto
- PrintIfEmpty = True
- ReportTitle = 'Grouping with SubTotals'
- SnapToGrid = True
- Units = Inches
- Zoom = 100
- object DetailBand1: TQRBand
- Left = 48
- Top = 138
- Width = 720
- Height = 17
- Frame.Color = clBlack
- Frame.DrawTop = False
- Frame.DrawBottom = False
- Frame.DrawLeft = False
- Frame.DrawRight = False
- AlignToBottom = False
- Color = clWhite
- ForceNewColumn = False
- ForceNewPage = False
- Size.Values = (
- 44.979166666666650000
- 1905.000000000000000000)
- BandType = rbDetail
- object QRDBText2: TQRDBText
- Left = 80
- Top = 0
- Width = 44
- Height = 17
- Frame.Color = clBlack
- Frame.DrawTop = False
- Frame.DrawBottom = False
- Frame.DrawLeft = False
- Frame.DrawRight = False
- Size.Values = (
- 44.979166666666650000
- 211.666666666666600000
- 0.000000000000000000
- 116.416666666666700000)
- Alignment = taLeftJustify
- AlignToBand = False
- AutoSize = True
- AutoStretch = False
- Color = clWhite
- DataSet = MasterQry
- DataField = 'orderno'
- Transparent = False
- WordWrap = True
- FontSize = 10
- end
- end
- object QRGroup1: TQRGroup
- Left = 48
- Top = 112
- Width = 720
- Height = 26
- Frame.Color = clBlack
- Frame.DrawTop = False
- Frame.DrawBottom = False
- Frame.DrawLeft = False
- Frame.DrawRight = False
- AlignToBottom = False
- Color = clWhite
- ForceNewColumn = False
- ForceNewPage = False
- Size.Values = (
- 68.791666666666670000
- 1905.000000000000000000)
- Expression = 'MasterQry.custno'
- FooterBand = QRBand2
- Master = QuickRep1
- ReprintOnNewPage = True
- object QRDBText4: TQRDBText
- Left = 0
- Top = 8
- Width = 54
- Height = 17
- Frame.Color = clBlack
- Frame.DrawTop = False
- Frame.DrawBottom = False
- Frame.DrawLeft = False
- Frame.DrawRight = False
- Size.Values = (
- 44.979166666666650000
- 0.000000000000000000
- 21.166666666666670000
- 142.875000000000000000)
- Alignment = taLeftJustify
- AlignToBand = False
- AutoSize = True
- AutoStretch = False
- Color = clWhite
- DataSet = MasterQry
- DataField = 'company'
- Transparent = False
- WordWrap = True
- FontSize = 10
- end
- end
- object QRSubDetail1: TQRSubDetail
- Left = 48
- Top = 155
- Width = 720
- Height = 17
- Frame.Color = clBlack
- Frame.DrawTop = False
- Frame.DrawBottom = False
- Frame.DrawLeft = False
- Frame.DrawRight = False
- AlignToBottom = False
- Color = clWhite
- ForceNewColumn = False
- ForceNewPage = False
- Size.Values = (
- 44.979166666666650000
- 1905.000000000000000000)
- Master = QuickRep1
- DataSet = DetailQry
- FooterBand = QRBand1
- PrintBefore = False
- PrintIfEmpty = True
- object QRDBText1: TQRDBText
- Left = 136
- Top = 0
- Width = 42
- Height = 17
- Frame.Color = clBlack
- Frame.DrawTop = False
- Frame.DrawBottom = False
- Frame.DrawLeft = False
- Frame.DrawRight = False
- Size.Values = (
- 44.979166666666650000
- 359.833333333333300000
- 0.000000000000000000
- 111.125000000000000000)
- Alignment = taLeftJustify
- AlignToBand = False
- AutoSize = True
- AutoStretch = False
- Color = clWhite
- DataSet = DetailQry
- DataField = 'ItemNo'
- Transparent = False
- WordWrap = True
- FontSize = 10
- end
- object QRDBText5: TQRDBText
- Left = 184
- Top = 0
- Width = 49
- Height = 17
- Frame.Color = clBlack
- Frame.DrawTop = False
- Frame.DrawBottom = False
- Frame.DrawLeft = False
- Frame.DrawRight = False
- Size.Values = (
- 44.979166666666650000
- 486.833333333333300000
- 0.000000000000000000
- 129.645833333333300000)
- Alignment = taRightJustify
- AlignToBand = False
- AutoSize = False
- AutoStretch = False
- Color = clWhite
- DataSet = DetailQry
- DataField = 'Qty'
- Transparent = False
- WordWrap = True
- FontSize = 10
- end
- end
- object QRBand1: TQRBand
- Left = 48
- Top = 172
- Width = 720
- Height = 17
- Frame.Color = clBlack
- Frame.DrawTop = False
- Frame.DrawBottom = False
- Frame.DrawLeft = False
- Frame.DrawRight = False
- AlignToBottom = False
- Color = clWhite
- ForceNewColumn = False
- ForceNewPage = False
- Size.Values = (
- 44.979166666666650000
- 1905.000000000000000000)
- BandType = rbGroupFooter
- object QRExpr1: TQRExpr
- Left = 232
- Top = 0
- Width = 117
- Height = 17
- Frame.Color = clBlack
- Frame.DrawTop = False
- Frame.DrawBottom = False
- Frame.DrawLeft = False
- Frame.DrawRight = False
- Size.Values = (
- 44.979166666666650000
- 613.833333333333400000
- 0.000000000000000000
- 309.562500000000000000)
- Alignment = taRightJustify
- AlignToBand = False
- AutoSize = False
- AutoStretch = False
- Font.Charset = DEFAULT_CHARSET
- Font.Color = clBlue
- Font.Height = -13
- Font.Name = 'Arial'
- Font.Style = []
- Color = clWhite
- Master = QRSubDetail1
- ParentFont = False
- ResetAfterPrint = True
- Transparent = False
- WordWrap = True
- Expression = 'SUM(DetailQry.Qty)'
- FontSize = 10
- end
- end
- object QRBand2: TQRBand
- Left = 48
- Top = 189
- Width = 720
- Height = 18
- Frame.Color = clBlack
- Frame.DrawTop = False
- Frame.DrawBottom = False
- Frame.DrawLeft = False
- Frame.DrawRight = False
- AlignToBottom = False
- Color = clWhite
- ForceNewColumn = False
- ForceNewPage = False
- Size.Values = (
- 47.625000000000000000
- 1905.000000000000000000)
- BandType = rbGroupFooter
- object QRExpr2: TQRExpr
- Left = 376
- Top = 0
- Width = 117
- Height = 17
- Frame.Color = clBlack
- Frame.DrawTop = False
- Frame.DrawBottom = False
- Frame.DrawLeft = False
- Frame.DrawRight = False
- Size.Values = (
- 44.979166666666650000
- 994.833333333333400000
- 0.000000000000000000
- 309.562500000000000000)
- Alignment = taRightJustify
- AlignToBand = False
- AutoSize = False
- AutoStretch = False
- Font.Charset = DEFAULT_CHARSET
- Font.Color = clGreen
- Font.Height = -13
- Font.Name = 'Arial'
- Font.Style = []
- Color = clWhite
- Master = QRSubDetail1
- ParentFont = False
- ResetAfterPrint = True
- Transparent = False
- WordWrap = True
- Expression = 'SUM(DetailQry.Qty)'
- FontSize = 10
- end
- end
- object SummaryBand1: TQRBand
- Left = 48
- Top = 207
- Width = 720
- Height = 19
- Frame.Color = clBlack
- Frame.DrawTop = False
- Frame.DrawBottom = False
- Frame.DrawLeft = False
- Frame.DrawRight = False
- AlignToBottom = False
- Color = clWhite
- ForceNewColumn = False
- ForceNewPage = False
- Size.Values = (
- 50.270833333333340000
- 1905.000000000000000000)
- BandType = rbSummary
- object QRExpr3: TQRExpr
- Left = 488
- Top = 0
- Width = 117
- Height = 17
- Frame.Color = clBlack
- Frame.DrawTop = False
- Frame.DrawBottom = False
- Frame.DrawLeft = False
- Frame.DrawRight = False
- Size.Values = (
- 44.979166666666650000
- 1291.166666666667000000
- 0.000000000000000000
- 309.562500000000000000)
- Alignment = taRightJustify
- AlignToBand = False
- AutoSize = False
- AutoStretch = False
- Font.Charset = DEFAULT_CHARSET
- Font.Color = clNavy
- Font.Height = -13
- Font.Name = 'Arial'
- Font.Style = []
- Color = clWhite
- Master = QRSubDetail1
- ParentFont = False
- ResetAfterPrint = True
- Transparent = False
- WordWrap = True
- Expression = 'SUM(DetailQry.Qty)'
- FontSize = 10
- end
- end
- object ColumnHeaderBand1: TQRBand
- Left = 48
- Top = 88
- Width = 720
- Height = 24
- Frame.Color = clBlack
- Frame.DrawTop = False
- Frame.DrawBottom = True
- Frame.DrawLeft = False
- Frame.DrawRight = False
- Frame.Width = 2
- AlignToBottom = False
- Color = clWhite
- Font.Charset = DEFAULT_CHARSET
- Font.Color = clWindowText
- Font.Height = -13
- Font.Name = 'Arial'
- Font.Style = [fsBold, fsItalic]
- ForceNewColumn = False
- ForceNewPage = False
- ParentFont = False
- Size.Values = (
- 63.500000000000000000
- 1905.000000000000000000)
- BandType = rbColumnHeader
- object QRLabel1: TQRLabel
- Left = 0
- Top = 0
- Width = 60
- Height = 17
- Frame.Color = clBlack
- Frame.DrawTop = False
- Frame.DrawBottom = False
- Frame.DrawLeft = False
- Frame.DrawRight = False
- Size.Values = (
- 44.979166666666650000
- 0.000000000000000000
- 0.000000000000000000
- 158.750000000000000000)
- Alignment = taLeftJustify
- AlignToBand = False
- AutoSize = True
- AutoStretch = False
- Caption = 'Company'
- Color = clWhite
- Transparent = False
- WordWrap = True
- FontSize = 10
- end
- object QRLabel2: TQRLabel
- Left = 80
- Top = 0
- Width = 43
- Height = 17
- Frame.Color = clBlack
- Frame.DrawTop = False
- Frame.DrawBottom = False
- Frame.DrawLeft = False
- Frame.DrawRight = False
- Size.Values = (
- 44.979166666666650000
- 211.666666666666600000
- 0.000000000000000000
- 113.770833333333300000)
- Alignment = taLeftJustify
- AlignToBand = False
- AutoSize = True
- AutoStretch = False
- Caption = 'Order#'
- Color = clWhite
- Transparent = False
- WordWrap = True
- FontSize = 10
- end
- object QRLabel4: TQRLabel
- Left = 136
- Top = 0
- Width = 34
- Height = 17
- Frame.Color = clBlack
- Frame.DrawTop = False
- Frame.DrawBottom = False
- Frame.DrawLeft = False
- Frame.DrawRight = False
- Size.Values = (
- 44.979166666666650000
- 359.833333333333300000
- 0.000000000000000000
- 89.958333333333320000)
- Alignment = taLeftJustify
- AlignToBand = False
- AutoSize = True
- AutoStretch = False
- Caption = 'Item#'
- Color = clWhite
- Transparent = False
- WordWrap = True
- FontSize = 10
- end
- object QRLabel5: TQRLabel
- Left = 184
- Top = 0
- Width = 52
- Height = 17
- Frame.Color = clBlack
- Frame.DrawTop = False
- Frame.DrawBottom = False
- Frame.DrawLeft = False
- Frame.DrawRight = False
- Size.Values = (
- 44.979166666666650000
- 486.833333333333300000
- 0.000000000000000000
- 137.583333333333300000)
- Alignment = taLeftJustify
- AlignToBand = False
- AutoSize = True
- AutoStretch = False
- Caption = 'Item Qty'
- Color = clWhite
- Transparent = False
- WordWrap = True
- FontSize = 10
- end
- object QRLabel6: TQRLabel
- Left = 256
- Top = 0
- Width = 96
- Height = 17
- Frame.Color = clBlack
- Frame.DrawTop = False
- Frame.DrawBottom = False
- Frame.DrawLeft = False
- Frame.DrawRight = False
- Size.Values = (
- 44.979166666666650000
- 677.333333333333400000
- 0.000000000000000000
- 254.000000000000000000)
- Alignment = taLeftJustify
- AlignToBand = False
- AutoSize = True
- AutoStretch = False
- Caption = 'Total Qty/Order'
- Color = clWhite
- Font.Charset = DEFAULT_CHARSET
- Font.Color = clBlue
- Font.Height = -13
- Font.Name = 'Arial'
- Font.Style = [fsBold, fsItalic]
- ParentFont = False
- Transparent = False
- WordWrap = True
- FontSize = 10
- end
- object QRLabel7: TQRLabel
- Left = 376
- Top = 0
- Width = 120
- Height = 17
- Frame.Color = clBlack
- Frame.DrawTop = False
- Frame.DrawBottom = False
- Frame.DrawLeft = False
- Frame.DrawRight = False
- Size.Values = (
- 44.979166666666650000
- 994.833333333333400000
- 0.000000000000000000
- 317.500000000000000000)
- Alignment = taLeftJustify
- AlignToBand = False
- AutoSize = True
- AutoStretch = False
- Caption = 'Total Qty/Customer'
- Color = clWhite
- Font.Charset = DEFAULT_CHARSET
- Font.Color = clGreen
- Font.Height = -13
- Font.Name = 'Arial'
- Font.Style = [fsBold, fsItalic]
- ParentFont = False
- Transparent = False
- WordWrap = True
- FontSize = 10
- end
- object QRLabel8: TQRLabel
- Left = 520
- Top = 0
- Width = 79
- Height = 17
- Frame.Color = clBlack
- Frame.DrawTop = False
- Frame.DrawBottom = False
- Frame.DrawLeft = False
- Frame.DrawRight = False
- Size.Values = (
- 44.979166666666650000
- 1375.833333333333000000
- 0.000000000000000000
- 209.020833333333300000)
- Alignment = taLeftJustify
- AlignToBand = False
- AutoSize = True
- AutoStretch = False
- Caption = 'Total Qty/All'
- Color = clWhite
- Font.Charset = DEFAULT_CHARSET
- Font.Color = clNavy
- Font.Height = -13
- Font.Name = 'Arial'
- Font.Style = [fsBold, fsItalic]
- ParentFont = False
- Transparent = False
- WordWrap = True
- FontSize = 10
- end
- end
- object PageHeaderBand1: TQRBand
- Left = 48
- Top = 48
- Width = 720
- Height = 40
- Frame.Color = clBlack
- Frame.DrawTop = False
- Frame.DrawBottom = False
- Frame.DrawLeft = False
- Frame.DrawRight = False
- AlignToBottom = False
- Color = clWhite
- Font.Charset = DEFAULT_CHARSET
- Font.Color = clWindowText
- Font.Height = -27
- Font.Name = 'Arial'
- Font.Style = []
- ForceNewColumn = False
- ForceNewPage = False
- ParentFont = False
- Size.Values = (
- 105.833333333333300000
- 1905.000000000000000000)
- BandType = rbPageHeader
- object QRSysData1: TQRSysData
- Left = 211
- Top = 0
- Width = 298
- Height = 33
- Frame.Color = clBlack
- Frame.DrawTop = False
- Frame.DrawBottom = False
- Frame.DrawLeft = False
- Frame.DrawRight = False
- Size.Values = (
- 87.312500000000000000
- 558.270833333333400000
- 0.000000000000000000
- 788.458333333333400000)
- Alignment = taCenter
- AlignToBand = True
- AutoSize = True
- Color = clWhite
- Data = qrsReportTitle
- Transparent = False
- FontSize = 20
- end
- object QRSysData2: TQRSysData
- Left = 0
- Top = 0
- Width = 42
- Height = 25
- Frame.Color = clBlack
- Frame.DrawTop = False
- Frame.DrawBottom = False
- Frame.DrawLeft = False
- Frame.DrawRight = False
- Size.Values = (
- 66.145833333333330000
- 0.000000000000000000
- 0.000000000000000000
- 111.125000000000000000)
- Alignment = taLeftJustify
- AlignToBand = False
- AutoSize = True
- Color = clWhite
- Data = qrsPageNumber
- Font.Charset = DEFAULT_CHARSET
- Font.Color = clWindowText
- Font.Height = -13
- Font.Name = 'Arial'
- Font.Style = []
- ParentFont = False
- Text = 'Page '
- Transparent = False
- FontSize = 10
- end
- end
- end
- object MasterQry: TQuery
- Active = True
- DatabaseName = 'DBDEMOS'
- SQL.Strings = (
- 'select c.company, o.orderno, o.custno, o.ItemsTotal'
- 'from orders o join customer c on o.custno=c.custno'
- 'where c.company LIKE '#39'A%'#39
- 'order by c.company, o.orderno')
- Left = 8
- object MasterQrycompany: TStringField
- FieldName = 'company'
- Origin = '"CUSTOMER.DB".Company'
- Size = 30
- end
- object MasterQryorderno: TFloatField
- FieldName = 'orderno'
- Origin = '"ORDERS.DB".OrderNo'
- end
- object MasterQrycustno: TFloatField
- FieldName = 'custno'
- Origin = '"ORDERS.DB".CustNo'
- end
- object MasterQryItemsTotal: TCurrencyField
- FieldName = 'ItemsTotal'
- Origin = '"ORDERS.DB".ItemsTotal'
- end
- end
- object DataSource1: TDataSource
- DataSet = MasterQry
- Left = 8
- Top = 32
- end
- object DetailQry: TQuery
- Active = True
- DatabaseName = 'DBDEMOS'
- DataSource = DataSource1
- SQL.Strings = (
- 'SELECT OrderNo, Qty, ItemNo'
- 'FROM ITEMS I'
- 'WHERE (i.OrderNo = :OrderNo)'
- 'ORDER BY OrderNo, ItemNo')
- Left = 8
- Top = 64
- ParamData = <
- item
- DataType = ftFloat
- Name = 'orderno'
- ParamType = ptUnknown
- end>
- object DetailQryOrderNo: TFloatField
- FieldName = 'OrderNo'
- Origin = '"ITEMS.DB".OrderNo'
- end
- object DetailQryQty: TIntegerField
- FieldName = 'Qty'
- Origin = '"ITEMS.DB".Qty'
- end
- object DetailQryItemNo: TFloatField
- FieldName = 'ItemNo'
- Origin = '"ITEMS.DB".ItemNo'
- end
- end
- end
-