home *** CD-ROM | disk | FTP | other *** search
- object Form1: TForm1
- Left = 356
- Top = 164
- Width = 446
- Height = 339
- Caption = 'Form1'
- Color = clBtnFace
- Font.Charset = DEFAULT_CHARSET
- Font.Color = clWindowText
- Font.Height = -11
- Font.Name = 'MS Sans Serif'
- Font.Style = []
- OldCreateOrder = False
- PixelsPerInch = 96
- TextHeight = 13
- object Button1: TButton
- Left = 176
- Top = 280
- Width = 75
- Height = 25
- Caption = 'Button1'
- TabOrder = 0
- OnClick = Button1Click
- end
- object Memo1: TMemo
- Left = 16
- Top = 8
- Width = 409
- Height = 265
- Lines.Strings = (
-
- 'This is a very simple demo to get you started on how to create t' +
- 'he data module of a '
- 'report. '
- ''
-
- 'For a much more complete demo, see fldemo.dpr. It'#39's more complic' +
- 'ated, but '
- 'there is where you can really see what can be done'
- ''
- 'Steps:'
- ' 1) Drop a TFlexCelReport on your form'
- ' '
-
- ' 2) If you want to use OLE, drop a TOLEAdapter, else drop a TX' +
- 'LSAdapter '
- 'and connect the FlexCelReport to it.'
- ''
-
- ' 3) Select a template and assign it to the TFlexCelReport. (Fo' +
- 'r detailed explanations '
- 'on how to create the template, see fldemo)'
- ''
- ' 4) Check the CalcRecordCount parameter of TFlexCelReport.'
- ''
-
- ' 5) If you want to link the templates into the exe, drop a TXl' +
- 'sTemplateStore '
- 'and connect it.')
- TabOrder = 1
- end
- object Cust: TTable
- AutoCalcFields = False
- CachedUpdates = True
- DatabaseName = 'DBDEMOS'
- Filter = 'CustNo<1352'
- TableName = 'CUSTOMER'
- Left = 340
- Top = 80
- object CustCustNo: TFloatField
- Alignment = taLeftJustify
- DisplayWidth = 6
- FieldName = 'CustNo'
- end
- object CustCompany: TStringField
- DisplayWidth = 26
- FieldName = 'Company'
- Required = True
- Size = 30
- end
- object CustPhone: TStringField
- DisplayWidth = 15
- FieldName = 'Phone'
- Size = 15
- end
- object CustLastInvoiceDate: TDateTimeField
- DisplayLabel = 'LastInvoice'
- DisplayWidth = 10
- FieldName = 'LastInvoiceDate'
- DisplayFormat = 'DDDDD'
- end
- object CustAddr1: TStringField
- FieldName = 'Addr1'
- Size = 30
- end
- object CustAddr2: TStringField
- FieldName = 'Addr2'
- Size = 30
- end
- object CustCity: TStringField
- FieldName = 'City'
- Size = 15
- end
- object CustState: TStringField
- FieldName = 'State'
- end
- object CustZip: TStringField
- FieldName = 'Zip'
- Size = 10
- end
- object CustCountry: TStringField
- FieldName = 'Country'
- end
- object CustFAX: TStringField
- FieldName = 'FAX'
- Size = 15
- end
- object CustTaxRate: TFloatField
- FieldName = 'TaxRate'
- end
- object CustContact: TStringField
- FieldName = 'Contact'
- end
- object CustTotAddr1: TStringField
- DisplayWidth = 128
- FieldKind = fkCalculated
- FieldName = 'TotAddr1'
- Size = 128
- Calculated = True
- end
- object CustTotAddr2: TStringField
- FieldKind = fkCalculated
- FieldName = 'TotAddr2'
- Size = 128
- Calculated = True
- end
- end
- object XLSAdapter: TXLSAdapter
- Left = 340
- Top = 16
- end
- object RepStart: TFlexCelReport
- Template = 'Start.xls'
- AutoClose = False
- Adapter = XLSAdapter
- DataModule = Owner
- CalcRecordCount = cr_SlowCount
- Left = 340
- Top = 48
- end
- object SaveDialog1: TSaveDialog
- DefaultExt = '*.xls'
- Filter = 'Excel Files|*.xls'
- Options = [ofOverwritePrompt, ofHideReadOnly, ofPathMustExist, ofEnableSizing]
- Title = 'Save Report as...'
- Left = 368
- Top = 16
- end
- end
-