object Form1: TForm1
  Left = 0
  Top = 0
  Caption = 'PDF Demo'
  ClientHeight = 708
  ClientWidth = 396
  FormFactor.Width = 320
  FormFactor.Height = 480
  FormFactor.Devices = [Desktop]
  OnCreate = FormCreate
  OnDestroy = FormDestroy
  DesignerMasterStyle = 0
  object ToolBar1: TToolBar
    Size.Width = 396.000000000000000000
    Size.Height = 44.000000000000000000
    Size.PlatformDefault = False
    TabOrder = 0
    object lblTitle: TLabel
      Align = Client
      Size.Width = 396.000000000000000000
      Size.Height = 44.000000000000000000
      Size.PlatformDefault = False
      TextSettings.Font.Size = 15.000000000000000000
      TextSettings.Font.StyleExt = {00070000000000000004000000}
      TextSettings.HorzAlign = Center
      Text = 'PDF Report Demo'
    end
  end
  object Layout1: TLayout
    Align = Client
    Padding.Left = 16.000000000000000000
    Padding.Top = 20.000000000000000000
    Padding.Right = 16.000000000000000000
    Padding.Bottom = 16.000000000000000000
    Size.Width = 396.000000000000000000
    Size.Height = 664.000000000000000000
    Size.PlatformDefault = False
    TabOrder = 1
    object lblInfo: TLabel
      Align = Top
      Margins.Bottom = 24.000000000000000000
      Position.X = 16.000000000000000000
      Position.Y = 200.000000000000000000
      Size.Width = 364.000000000000000000
      Size.Height = 48.000000000000000000
      Size.PlatformDefault = False
      Text = 
        'Generates a master-detail PDF report from Northwind db.db (custo' +
        'mers + orders).'
    end
    object btnShowReport: TButton
      Align = Top
      Margins.Bottom = 12.000000000000000000
      Position.X = 16.000000000000000000
      Position.Y = 272.000000000000000000
      Size.Width = 364.000000000000000000
      Size.Height = 56.000000000000000000
      Size.PlatformDefault = False
      TabOrder = 0
      Text = 'Master-Detail Report (Northwind)'
      OnClick = btnShowReportClick
    end
    object lblSampleHdr: TLabel
      Align = Top
      Margins.Top = 4.000000000000000000
      Margins.Bottom = 4.000000000000000000
      Position.X = 16.000000000000000000
      Position.Y = 464.000000000000000000
      Size.Width = 364.000000000000000000
      Size.Height = 18.000000000000000000
      Size.PlatformDefault = False
      TextSettings.Font.StyleExt = {00070000000000000004000000}
      Text = 'Select Sample Report:'
    end
    object cbxSample: TComboBox
      Align = Top
      Margins.Bottom = 8.000000000000000000
      Position.X = 16.000000000000000000
      Position.Y = 486.000000000000000000
      Size.Width = 364.000000000000000000
      Size.Height = 38.000000000000000000
      Size.PlatformDefault = False
      TabOrder = 2
    end
    object btnRunSample: TButton
      Align = Top
      Margins.Bottom = 16.000000000000000000
      Position.X = 16.000000000000000000
      Position.Y = 532.000000000000000000
      Size.Width = 364.000000000000000000
      Size.Height = 44.000000000000000000
      Size.PlatformDefault = False
      TabOrder = 3
      Text = 'Run Selected Sample'
      OnClick = btnRunSampleClick
    end
    object btnPrintSample: TButton
      Align = Top
      Margins.Bottom = 16.000000000000000000
      Position.X = 16.000000000000000000
      Position.Y = 20.000000000000000000
      Size.Width = 364.000000000000000000
      Size.Height = 44.000000000000000000
      Size.PlatformDefault = False
      TabOrder = 5
      Text = 'Print Selected Sample (Windows)'
      OnClick = btnPrintSampleClick
    end
    object btnOpenDesigner: TButton
      Align = Top
      Margins.Bottom = 24.000000000000000000
      Position.X = 16.000000000000000000
      Position.Y = 132.000000000000000000
      Size.Width = 364.000000000000000000
      Size.Height = 44.000000000000000000
      Size.PlatformDefault = False
      TabOrder = 1
      Text = 'Open Report Designer'
      OnClick = btnOpenDesignerClick
    end
    object btnPreview: TButton
      Align = Top
      Margins.Bottom = 8.000000000000000000
      Position.X = 16.000000000000000000
      Position.Y = 80.000000000000000000
      Size.Width = 364.000000000000000000
      Size.Height = 44.000000000000000000
      Size.PlatformDefault = False
      TabOrder = 4
      Text = 'Preview Report (Windows)'
      OnClick = btnPreviewClick
    end
    object lblStatus: TLabel
      Align = Top
      Position.X = 16.000000000000000000
      Position.Y = 340.000000000000000000
      Size.Width = 364.000000000000000000
      Size.Height = 120.000000000000000000
      Size.PlatformDefault = False
      Text = 'Ready.'
    end
  end
  object PDFDrawing1: TPDFDrawing
    Left = 40
    Top = 544
  end
  object ReportEngine1: TReportEngine
    PDFDrawing = PDFDrawing1
    Left = 128
    Top = 544
  end
  object FDConn: TFDConnection
    Params.Strings = (
      'Database=M:\Dropbox\FmxToPDF\Demos\db5.db'
      'DriverID=SQLite')
    Connected = True
    LoginPrompt = False
    Left = 32
    Top = 208
  end
  object FDSQLiteDrv: TFDPhysSQLiteDriverLink
    Left = 104
    Top = 208
  end
  object QryCustomers: TFDQuery
    Active = True
    Connection = FDConn
    SQL.Strings = (
      'select * from Customers')
    Left = 104
    Top = 336
    object QryCustomersID: TFDAutoIncField
      FieldName = 'ID'
      Origin = 'ID'
      ProviderFlags = [pfInWhere, pfInKey]
      ReadOnly = False
    end
    object QryCustomersCustomerID: TWideMemoField
      FieldName = 'CustomerID'
      Origin = 'CustomerID'
      Required = True
      BlobType = ftWideMemo
    end
    object QryCustomersCompanyName: TWideMemoField
      FieldName = 'CompanyName'
      Origin = 'CompanyName'
      Required = True
      BlobType = ftWideMemo
    end
    object QryCustomersContactName: TWideMemoField
      FieldName = 'ContactName'
      Origin = 'ContactName'
      BlobType = ftWideMemo
    end
    object QryCustomersContactTitle: TWideMemoField
      FieldName = 'ContactTitle'
      Origin = 'ContactTitle'
      BlobType = ftWideMemo
    end
    object QryCustomersAddress: TWideMemoField
      FieldName = 'Address'
      Origin = 'Address'
      BlobType = ftWideMemo
    end
    object QryCustomersCity: TWideMemoField
      FieldName = 'City'
      Origin = 'City'
      BlobType = ftWideMemo
    end
    object QryCustomersRegion: TWideMemoField
      FieldName = 'Region'
      Origin = 'Region'
      BlobType = ftWideMemo
    end
    object QryCustomersPostalCode: TWideMemoField
      FieldName = 'PostalCode'
      Origin = 'PostalCode'
      BlobType = ftWideMemo
    end
    object QryCustomersCountry: TWideMemoField
      FieldName = 'Country'
      Origin = 'Country'
      BlobType = ftWideMemo
    end
    object QryCustomersPhone: TWideMemoField
      FieldName = 'Phone'
      Origin = 'Phone'
      BlobType = ftWideMemo
    end
    object QryCustomersFax: TWideMemoField
      FieldName = 'Fax'
      Origin = 'Fax'
      BlobType = ftWideMemo
    end
  end
  object DSCustomers: TDataSource
    DataSet = QryCustomers
    Left = 184
    Top = 336
  end
  object QryOrders: TFDQuery
    Active = True
    MasterSource = DSCustomers
    MasterFields = 'CustomerID'
    Connection = FDConn
    FormatOptions.AssignedValues = [fvDefaultParamDataType]
    FormatOptions.DefaultParamDataType = ftString
    SQL.Strings = (
      'select * from Orders')
    Left = 104
    Top = 432
    object QryOrdersOrderID: TFDAutoIncField
      FieldName = 'OrderID'
      Origin = 'OrderID'
      ProviderFlags = [pfInWhere, pfInKey]
      ReadOnly = False
    end
    object QryOrdersCustomerID: TWideMemoField
      FieldName = 'CustomerID'
      Origin = 'CustomerID'
      Required = True
      BlobType = ftWideMemo
    end
    object QryOrdersEmployeeID: TIntegerField
      FieldName = 'EmployeeID'
      Origin = 'EmployeeID'
    end
    object QryOrdersOrderDate: TWideMemoField
      FieldName = 'OrderDate'
      Origin = 'OrderDate'
      BlobType = ftWideMemo
    end
    object QryOrdersRequiredDate: TWideMemoField
      FieldName = 'RequiredDate'
      Origin = 'RequiredDate'
      BlobType = ftWideMemo
    end
    object QryOrdersShippedDate: TWideMemoField
      FieldName = 'ShippedDate'
      Origin = 'ShippedDate'
      BlobType = ftWideMemo
    end
    object QryOrdersShipVia: TIntegerField
      FieldName = 'ShipVia'
      Origin = 'ShipVia'
    end
    object QryOrdersFreight: TLargeintField
      FieldName = 'Freight'
      Origin = 'Freight'
    end
    object QryOrdersShipName: TWideMemoField
      FieldName = 'ShipName'
      Origin = 'ShipName'
      BlobType = ftWideMemo
    end
    object QryOrdersShipAddress: TWideMemoField
      FieldName = 'ShipAddress'
      Origin = 'ShipAddress'
      BlobType = ftWideMemo
    end
    object QryOrdersShipCity: TWideMemoField
      FieldName = 'ShipCity'
      Origin = 'ShipCity'
      BlobType = ftWideMemo
    end
    object QryOrdersShipRegion: TWideMemoField
      FieldName = 'ShipRegion'
      Origin = 'ShipRegion'
      BlobType = ftWideMemo
    end
    object QryOrdersShipPostalCode: TWideMemoField
      FieldName = 'ShipPostalCode'
      Origin = 'ShipPostalCode'
      BlobType = ftWideMemo
    end
    object QryOrdersShipCountry: TWideMemoField
      FieldName = 'ShipCountry'
      Origin = 'ShipCountry'
      BlobType = ftWideMemo
    end
  end
  object RptDataSet1: TRptDataSet
    ReportEngine = ReportEngine1
    DataSetName = 'customers'
    DataSet = QryCustomers
    Left = 24
    Top = 628
  end
  object RptDataSet2: TRptDataSet
    ReportEngine = ReportEngine1
    DataSetName = 'orders'
    DataSet = QryOrders
    Left = 120
    Top = 628
  end
  object DSOrders: TDataSource
    DataSet = QryOrders
    Left = 184
    Top = 432
  end
  object QryItems: TFDQuery
    Active = True
    MasterSource = DSOrders
    MasterFields = 'OrderID'
    Connection = FDConn
    FormatOptions.AssignedValues = [fvDefaultParamDataType]
    FormatOptions.DefaultParamDataType = ftString
    SQL.Strings = (
      'select * from OrderItems')
    Left = 104
    Top = 384
    object QryItemsItemID: TFDAutoIncField
      FieldName = 'ItemID'
      Origin = 'ItemID'
      ProviderFlags = [pfInWhere, pfInKey]
      ReadOnly = False
    end
    object QryItemsOrderID: TIntegerField
      FieldName = 'OrderID'
      Origin = 'OrderID'
      Required = True
    end
    object QryItemsProductName: TWideMemoField
      FieldName = 'ProductName'
      Origin = 'ProductName'
      Required = True
      BlobType = ftWideMemo
    end
    object QryItemsQuantity: TIntegerField
      FieldName = 'Quantity'
      Origin = 'Quantity'
    end
    object QryItemsUnitPrice: TFloatField
      FieldName = 'UnitPrice'
      Origin = 'UnitPrice'
    end
  end
  object RptDataSet3: TRptDataSet
    ReportEngine = ReportEngine1
    DataSetName = 'items'
    DataSet = QryItems
    Left = 224
    Top = 628
  end
end
