object ppReport: TppReport
  AutoStop = False
  PassSetting = psTwoPass
  PrinterSetup.BinName = 'Default'
  PrinterSetup.DocumentName = 'Report'
  PrinterSetup.PaperName = 'Letter 8 1/2 x 11 in'
  PrinterSetup.PrinterName = 'Default'
  PrinterSetup.mmMarginBottom = 6350
  PrinterSetup.mmMarginLeft = 6350
  PrinterSetup.mmMarginRight = 6350
  PrinterSetup.mmMarginTop = 6350
  PrinterSetup.mmPaperHeight = 279401
  PrinterSetup.mmPaperWidth = 215900
  PrinterSetup.PaperSize = 1
  SaveAsTemplate = True
  Template.DatabaseSettings.DataPipeline = plItem
  Template.DatabaseSettings.Name = 'New Report'
  Template.DatabaseSettings.NameField = 'ITEM_NAME'
  Template.DatabaseSettings.TemplateField = 'TEMPLATE'
  Template.FileName = 'D:\Projects\Delphi\Sdac\Demos\ReportBuilder\Reports\Orders.rtm'
  Template.Format = ftASCII
  Units = utScreenPixels
  DeviceType = 'Screen'
  Left = 289
  Top = 326
  Version = '6.01'
  mmColumnWidth = 0
  DataPipelineName = 'Orders'
  object ppTitleBand1: TppTitleBand
    mmBottomOffset = 0
    mmHeight = 9525
    mmPrintPosition = 0
    object ppLine1: TppLine
      UserName = 'Line1'
      Pen.Color = clNavy
      Pen.Width = 2
      Weight = 1.5
      mmHeight = 3969
      mmLeft = 1323
      mmTop = 1323
      mmWidth = 200555
      BandType = 1
    end
    object ppLabel1: TppLabel
      UserName = 'Label1'
      Caption = 'Orders summary'
      Font.Charset = DEFAULT_CHARSET
      Font.Color = clNavy
      Font.Name = 'TIMES NEW ROMAN'
      Font.Size = 20
      Font.Style = [fsBold, fsItalic]
      Transparent = True
      mmHeight = 8202
      mmLeft = 1323
      mmTop = 1323
      mmWidth = 48948
      BandType = 1
    end
  end
  object ppHeaderBand1: TppHeaderBand
    mmBottomOffset = 0
    mmHeight = 7408
    mmPrintPosition = 0
    object ppLabel2: TppLabel
      UserName = 'Label2'
      AutoSize = False
      Caption = 'Product name'
      Font.Charset = DEFAULT_CHARSET
      Font.Color = clNavy
      Font.Name = 'TIMES NEW ROMAN'
      Font.Size = 11
      Font.Style = [fsBold, fsItalic]
      Transparent = True
      mmHeight = 4763
      mmLeft = 1323
      mmTop = 1323
      mmWidth = 23283
      BandType = 0
    end
    object ppLabel3: TppLabel
      UserName = 'Label3'
      AutoSize = False
      Caption = 'Unit price'
      Font.Charset = DEFAULT_CHARSET
      Font.Color = clNavy
      Font.Name = 'TIMES NEW ROMAN'
      Font.Size = 11
      Font.Style = [fsBold, fsItalic]
      Transparent = True
      mmHeight = 4763
      mmLeft = 55563
      mmTop = 1323
      mmWidth = 16669
      BandType = 0
    end
    object ppLabel4: TppLabel
      UserName = 'Label4'
      Caption = 'Quantity'
      Font.Charset = DEFAULT_CHARSET
      Font.Color = clNavy
      Font.Name = 'TIMES NEW ROMAN'
      Font.Size = 11
      Font.Style = [fsBold, fsItalic]
      Transparent = True
      mmHeight = 4498
      mmLeft = 73290
      mmTop = 1323
      mmWidth = 14023
      BandType = 0
    end
    object ppLine3: TppLine
      UserName = 'Line3'
      Pen.Color = clNavy
      Pen.Width = 2
      ParentWidth = True
      Weight = 1.5
      mmHeight = 2646
      mmLeft = 0
      mmTop = 6615
      mmWidth = 203200
      BandType = 0
    end
    object ppLabel5: TppLabel
      UserName = 'Label5'
      Caption = 'Cost'
      Font.Charset = DEFAULT_CHARSET
      Font.Color = clNavy
      Font.Name = 'TIMES NEW ROMAN'
      Font.Size = 11
      Font.Style = [fsBold, fsItalic]
      Transparent = True
      mmHeight = 4498
      mmLeft = 93134
      mmTop = 1323
      mmWidth = 7144
      BandType = 0
    end
  end
  object ppDetailBand1: TppDetailBand
    mmBottomOffset = 0
    mmHeight = 6085
    mmPrintPosition = 0
    object ppDBText2: TppDBText
      UserName = 'DBText2'
      AutoSize = True
      DataField = 'ProductName'
      Font.Charset = DEFAULT_CHARSET
      Font.Color = clBlack
      Font.Name = 'ARIAL'
      Font.Size = 8
      Font.Style = []
      Transparent = True
      DataPipelineName = 'Orders'
      mmHeight = 3175
      mmLeft = 1323
      mmTop = 529
      mmWidth = 47361
      BandType = 4
    end
    object ppDBText3: TppDBText
      UserName = 'DBText3'
      DataField = 'UnitPrice'
      Font.Charset = DEFAULT_CHARSET
      Font.Color = clBlack
      Font.Name = 'ARIAL'
      Font.Size = 8
      Font.Style = []
      Transparent = True
      DataPipelineName = 'Orders'
      mmHeight = 3175
      mmLeft = 55563
      mmTop = 529
      mmWidth = 16933
      BandType = 4
    end
    object ppDBText4: TppDBText
      UserName = 'DBText4'
      DataField = 'Quantity'
      Font.Charset = DEFAULT_CHARSET
      Font.Color = clBlack
      Font.Name = 'ARIAL'
      Font.Size = 8
      Font.Style = []
      Transparent = True
      DataPipelineName = 'Orders'
      mmHeight = 3175
      mmLeft = 73290
      mmTop = 529
      mmWidth = 16933
      BandType = 4
    end
    object ppDBText5: TppDBText
      UserName = 'DBText5'
      DataField = 'Order_Details_UnitPrice_O'
      Font.Charset = DEFAULT_CHARSET
      Font.Color = clWindowText
      Font.Name = 'Arial'
      Font.Size = 8
      Font.Style = []
      Transparent = True
      DataPipelineName = 'Orders'
      mmHeight = 3175
      mmLeft = 93134
      mmTop = 529
      mmWidth = 91546
      BandType = 4
    end
  end
  object ppFooterBand1: TppFooterBand
    mmBottomOffset = 0
    mmHeight = 7144
    mmPrintPosition = 0
    object ppLine4: TppLine
      UserName = 'Line4'
      Pen.Color = clGray
      Pen.Width = 2
      Weight = 1.5
      mmHeight = 3969
      mmLeft = 1323
      mmTop = 5821
      mmWidth = 200555
      BandType = 8
    end
    object ppSystemVariable1: TppSystemVariable
      UserName = 'SystemVariable1'
      VarType = vtPrintDateTime
      Font.Charset = DEFAULT_CHARSET
      Font.Color = clNavy
      Font.Name = 'TIMES NEW ROMAN'
      Font.Size = 9
      Font.Style = []
      Transparent = True
      mmHeight = 4498
      mmLeft = 1323
      mmTop = 1323
      mmWidth = 17198
      BandType = 8
    end
    object ppSystemVariable2: TppSystemVariable
      UserName = 'SystemVariable2'
      VarType = vtPageNoDesc
      Font.Charset = DEFAULT_CHARSET
      Font.Color = clNavy
      Font.Name = 'TIMES NEW ROMAN'
      Font.Size = 9
      Font.Style = []
      TextAlignment = taRightJustified
      Transparent = True
      mmHeight = 4498
      mmLeft = 184680
      mmTop = 1323
      mmWidth = 17198
      BandType = 8
    end
  end
  object ppGroup1: TppGroup
    BreakName = 'OrderDate'
    DataPipeline = daSDACQueryDataView1.Orders
    UserName = 'Group1'
    mmNewColumnThreshold = 0
    mmNewPageThreshold = 0
    DataPipelineName = 'Orders'
    object ppGroupHeaderBand1: TppGroupHeaderBand
      mmBottomOffset = 0
      mmHeight = 6350
      mmPrintPosition = 0
      object ppDBText1: TppDBText
        UserName = 'DBText1'
        DataField = 'OrderDate'
        Font.Charset = DEFAULT_CHARSET
        Font.Color = clNavy
        Font.Name = 'TIMES NEW ROMAN'
        Font.Size = 9
        Font.Style = []
        Transparent = True
        DataPipelineName = 'Orders'
        mmHeight = 3704
        mmLeft = 1323
        mmTop = 529
        mmWidth = 16933
        BandType = 3
        GroupNo = 0
      end
    end
    object ppGroupFooterBand1: TppGroupFooterBand
      mmBottomOffset = 0
      mmHeight = 6085
      mmPrintPosition = 0
      object ppDBCalc1: TppDBCalc
        UserName = 'DBCalc1'
        AutoSize = True
        DataField = 'Order_Details_UnitPrice_O'
        DisplayFormat = '$#,0.00;-$#,0.00'
        Font.Charset = DEFAULT_CHARSET
        Font.Color = clBlack
        Font.Name = 'ARIAL'
        Font.Size = 8
        Font.Style = [fsBold]
        ResetGroup = ppGroup1
        Transparent = True
        DataPipelineName = 'Orders'
        mmHeight = 3440
        mmLeft = 93134
        mmTop = 529
        mmWidth = 71702
        BandType = 5
        GroupNo = 0
      end
    end
  end
  object daDataModule1: TdaDataModule
    object daSDACQueryDataView1: TdaSDACQueryDataView
      Report = ppReport
      UserName = 'Query_Orders'
      Height = 227
      Left = 10
      NameColumnWidth = 105
      SizeColumnWidth = 35
      SortMode = 0
      Top = 10
      TypeColumnWidth = 52
      Width = 382
      AutoSearchTabOrder = 0
      object Orders: TppChildDBPipeline
        AutoCreateFields = False
        UserName = 'Orders'
        object ppField1: TppField
          FieldAlias = 'Orderid'
          FieldName = 'OrderID'
          FieldLength = 10
          DataType = dtInteger
          DisplayWidth = 10
          Position = 0
          TableName = 'Orders'
        end
        object ppField2: TppField
          FieldAlias = 'Orderdate'
          FieldName = 'OrderDate'
          FieldLength = 10
          DataType = dtDateTime
          DisplayWidth = 10
          Position = 1
          TableName = 'Orders'
        end
        object ppField3: TppField
          FieldAlias = 'Productname'
          FieldName = 'ProductName'
          FieldLength = 10
          IsDetail = True
          DisplayWidth = 10
          Position = 2
          TableName = 'Products'
        end
        object ppField4: TppField
          FieldAlias = 'Unitprice'
          FieldName = 'UnitPrice'
          FieldLength = 10
          IsDetail = True
          DataType = dtCurrency
          DisplayWidth = 10
          Position = 3
          TableName = 'Order_Details'
        end
        object ppField5: TppField
          FieldAlias = 'Quantity'
          FieldName = 'Quantity'
          FieldLength = 10
          IsDetail = True
          DataType = dtInteger
          DisplayWidth = 10
          Position = 4
          TableName = 'Order_Details'
        end
        object ppField6: TppField
          FieldAlias = 'Order_Details.UnitPrice*Order_Details.Quantity'
          FieldName = 'Order_Details_UnitPrice_O'
          FieldLength = 10
          Linkable = False
          DataType = dtCurrency
          DisplayWidth = 10
          Position = 5
          TableName = 'Order_Details'
        end
      end
      object daSQL1: TdaSQL
        DatabaseName = 'seDatabase'
        DatabaseType = dtMSSQLServer
        DataPipelineName = 'Orders'
        LinkColor = clMaroon
        MaxSQLFieldAliasLength = 25
        SQLText.Strings = (
          'SELECT Orders.OrderID, Orders.OrderDate, '
          '       Products.ProductName, '
          '       Order_Details.UnitPrice, '
          '       Order_Details.Quantity, '
          
            '       Order_Details.UnitPrice*Order_Details.Quantity Order_Deta' +
            'ils_UnitPrice_O'
          'FROM Orders Orders, "Order Details" Order_Details'
          '     , Products Products'
          'WHERE (Order_Details.OrderID = Orders.OrderID)'
          '       AND '
          '      (Products.ProductID = Order_Details.ProductID)'
          'ORDER BY Orders.OrderDate, Products.ProductName')
        SQLType = sqSQL1
        object daCalculation1: TdaCalculation
          ChildType = 8
          Alias = 'Order_Details.UnitPrice*Order_Details.Quantity'
          DataType = dtCurrency
          DisplayWidth = 10
          FieldAlias = 'Unitprice'
          FieldLength = 10
          FieldName = 'UnitPrice'
          Linkable = False
          SQLFieldName = 'Order_Details_UnitPrice_O'
          TableAlias = 'Order Details'
          TableName = 'Order Details'
          TableSQLAlias = 'Order_Details'
          CalcType = dacaExpression
          Expression = 'Order_Details.UnitPrice*Order_Details.Quantity'
        end
        object daField1: TdaField
          Alias = 'Orderid'
          DataType = dtInteger
          DisplayWidth = 10
          FieldAlias = 'Orderid'
          FieldLength = 10
          FieldName = 'OrderID'
          SQLFieldName = 'OrderID'
          TableAlias = 'Orders'
          TableName = 'Orders'
          TableSQLAlias = 'Orders'
        end
        object daField2: TdaField
          Alias = 'Orderdate'
          DataType = dtDateTime
          DisplayWidth = 10
          FieldAlias = 'Orderdate'
          FieldLength = 10
          FieldName = 'OrderDate'
          SQLFieldName = 'OrderDate'
          TableAlias = 'Orders'
          TableName = 'Orders'
          TableSQLAlias = 'Orders'
        end
        object daField3: TdaField
          Alias = 'Productname'
          DisplayWidth = 10
          FieldAlias = 'Productname'
          FieldLength = 10
          FieldName = 'ProductName'
          IsDetail = True
          SQLFieldName = 'ProductName'
          TableAlias = 'Products'
          TableName = 'Products'
          TableSQLAlias = 'Products'
        end
        object daField4: TdaField
          Alias = 'Unitprice'
          DataType = dtCurrency
          DisplayWidth = 10
          FieldAlias = 'Unitprice'
          FieldLength = 10
          FieldName = 'UnitPrice'
          IsDetail = True
          SQLFieldName = 'UnitPrice'
          TableAlias = 'Order Details'
          TableName = 'Order Details'
          TableSQLAlias = 'Order_Details'
        end
        object daField5: TdaField
          Alias = 'Quantity'
          DataType = dtInteger
          DisplayWidth = 10
          FieldAlias = 'Quantity'
          FieldLength = 10
          FieldName = 'Quantity'
          IsDetail = True
          SQLFieldName = 'Quantity'
          TableAlias = 'Order Details'
          TableName = 'Order Details'
          TableSQLAlias = 'Order_Details'
        end
        object daField6: TdaField
          ChildType = 2
          Alias = 'Orderdate'
          DataType = dtDateTime
          DisplayWidth = 10
          FieldAlias = 'Orderdate'
          FieldLength = 10
          FieldName = 'OrderDate'
          SQLFieldName = 'OrderDate'
          TableAlias = 'Orders'
          TableName = 'Orders'
          TableSQLAlias = 'Orders'
        end
        object daField7: TdaField
          ChildType = 2
          Alias = 'Productname'
          DisplayWidth = 10
          FieldAlias = 'Productname'
          FieldLength = 10
          FieldName = 'ProductName'
          SQLFieldName = 'ProductName'
          TableAlias = 'Products'
          TableName = 'Products'
          TableSQLAlias = 'Products'
        end
        object daTable1: TdaTable
          ChildType = 5
          Alias = 'Orders'
          JoinType = dajtNone
          SQLAlias = 'Orders'
          TableAlias = 'Orders'
          TableName = 'Orders'
        end
        object daTable2: TdaTable
          ChildType = 5
          Alias = 'Order Details'
          SQLAlias = 'Order_Details'
          TableAlias = 'Order Details'
          TableName = 'Order Details'
          object daTableJoin1: TdaTableJoin
            ChildType = 6
            object daField9: TdaField
              ChildType = 3
              Alias = 'Orderid'
              DataType = dtInteger
              DisplayWidth = 10
              FieldAlias = 'Orderid'
              FieldLength = 10
              FieldName = 'OrderID'
              SQLFieldName = 'OrderID'
              TableAlias = 'Order Details'
              TableName = 'Order Details'
              TableSQLAlias = 'Order_Details'
            end
            object daField8: TdaField
              ChildType = 4
              Alias = 'Orderid'
              DataType = dtInteger
              DisplayWidth = 10
              FieldAlias = 'Orderid'
              FieldLength = 10
              FieldName = 'OrderID'
              SQLFieldName = 'OrderID'
              TableAlias = 'Orders'
              TableName = 'Orders'
              TableSQLAlias = 'Orders'
            end
          end
        end
        object daTable3: TdaTable
          ChildType = 5
          Alias = 'Products'
          SQLAlias = 'Products'
          TableAlias = 'Products'
          TableName = 'Products'
          object daTableJoin2: TdaTableJoin
            ChildType = 6
            object daField11: TdaField
              ChildType = 3
              Alias = 'Productid'
              DataType = dtInteger
              DisplayWidth = 10
              FieldAlias = 'Productid'
              FieldLength = 10
              FieldName = 'ProductID'
              SQLFieldName = 'ProductID'
              TableAlias = 'Products'
              TableName = 'Products'
              TableSQLAlias = 'Products'
            end
            object daField10: TdaField
              ChildType = 4
              Alias = 'Productid'
              DataType = dtInteger
              DisplayWidth = 10
              FieldAlias = 'Productid'
              FieldLength = 10
              FieldName = 'ProductID'
              SQLFieldName = 'ProductID'
              TableAlias = 'Order Details'
              TableName = 'Order Details'
              TableSQLAlias = 'Order_Details'
            end
          end
        end
      end
    end
  end
end
