D
dingtip
Unregistered / Unconfirmed
GUEST, unregistred user!
我的操作步骤。
我放上三个组件table,frxreport,frxdbdatabase
设置分别如下
object Form1: TForm1
Left = 192
Top = 107
Width = 696
Height = 480
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 Table1: TTable
DatabaseName = 'DBDEMOS'
TableName = 'country.db'
Left = 80
Top = 56
end
object frxReport1: TfrxReport
Version = '3.15'
DataSet = frxDBDataset1
DataSetName = 'frxDBDataset1'
do
tMatrixReport = False
IniFile = '/Software/Fast Reports'
PreviewOptions.Buttons = [pbPrint, pbLoad, pbSave, pbExport, pbZoom, pbFind, pbOutline, pbPageSetup, pbTools, pbEdit, pbNavigator]
PreviewOptions.Zoom = 1.000000000000000000
PrintOptions.Printer = 'Default'
ReportOptions.CreateDate = 38579.467288946800000000
ReportOptions.LastChange = 38579.467288946800000000
ScriptLanguage = 'PascalScript'
ScriptText.Strings = (
'begin
'
''
'end.
')
Left = 128
Top = 56
Datasets = <
item
DataSet = frxDBDataset1
DataSetName = 'frxDBDataset1'
end>
Variables = <>
Style = <>
object Page1: TfrxReportPage
PaperWidth = 210.000000000000000000
PaperHeight = 297.000000000000000000
PaperSize = 9
LeftMargin = 10.000000000000000000
RightMargin = 10.000000000000000000
TopMargin = 10.000000000000000000
BottomMargin = 10.000000000000000000
object DetailData1: TfrxDetailData
Height = 22.677180000000000000
Top = 18.897650000000000000
Width = 718.110700000000000000
RowCount = 1
object Memo1: TfrxMemoView
Left = 30.236240000000000000
Width = 94.488250000000000000
Height = 18.897650000000000000
Memo.Strings = (
'[frxDBDataset1."Name"]')
end
object Memo2: TfrxMemoView
Left = 238.110390000000000000
Top = 3.779530000000001000
Width = 94.488250000000000000
Height = 18.897650000000000000
Memo.Strings = (
'[frxDBDataset1."Capital"]')
end
end
end
end
object frxDBDataset1: TfrxDBDataset
UserName = 'frxDBDataset1'
CloseDataSource = False
FieldAliases.Strings = (
'Name=Name'
'Capital=Capital'
'Continent=Continent'
'Area=Area'
'Population=Population')
DataSet = Table1
Left = 176
Top = 56
end
end
在报表欲览器中我设置了添加了一个detaildata 选 single rows
然后添加text object 两个,双击一个text object选中一个字段,然后预览报出
"the following errors ,have occured;
Incorrect band position DetailData1"
我放上三个组件table,frxreport,frxdbdatabase
设置分别如下
object Form1: TForm1
Left = 192
Top = 107
Width = 696
Height = 480
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 Table1: TTable
DatabaseName = 'DBDEMOS'
TableName = 'country.db'
Left = 80
Top = 56
end
object frxReport1: TfrxReport
Version = '3.15'
DataSet = frxDBDataset1
DataSetName = 'frxDBDataset1'
do
tMatrixReport = False
IniFile = '/Software/Fast Reports'
PreviewOptions.Buttons = [pbPrint, pbLoad, pbSave, pbExport, pbZoom, pbFind, pbOutline, pbPageSetup, pbTools, pbEdit, pbNavigator]
PreviewOptions.Zoom = 1.000000000000000000
PrintOptions.Printer = 'Default'
ReportOptions.CreateDate = 38579.467288946800000000
ReportOptions.LastChange = 38579.467288946800000000
ScriptLanguage = 'PascalScript'
ScriptText.Strings = (
'begin
'
''
'end.
')
Left = 128
Top = 56
Datasets = <
item
DataSet = frxDBDataset1
DataSetName = 'frxDBDataset1'
end>
Variables = <>
Style = <>
object Page1: TfrxReportPage
PaperWidth = 210.000000000000000000
PaperHeight = 297.000000000000000000
PaperSize = 9
LeftMargin = 10.000000000000000000
RightMargin = 10.000000000000000000
TopMargin = 10.000000000000000000
BottomMargin = 10.000000000000000000
object DetailData1: TfrxDetailData
Height = 22.677180000000000000
Top = 18.897650000000000000
Width = 718.110700000000000000
RowCount = 1
object Memo1: TfrxMemoView
Left = 30.236240000000000000
Width = 94.488250000000000000
Height = 18.897650000000000000
Memo.Strings = (
'[frxDBDataset1."Name"]')
end
object Memo2: TfrxMemoView
Left = 238.110390000000000000
Top = 3.779530000000001000
Width = 94.488250000000000000
Height = 18.897650000000000000
Memo.Strings = (
'[frxDBDataset1."Capital"]')
end
end
end
end
object frxDBDataset1: TfrxDBDataset
UserName = 'frxDBDataset1'
CloseDataSource = False
FieldAliases.Strings = (
'Name=Name'
'Capital=Capital'
'Continent=Continent'
'Area=Area'
'Population=Population')
DataSet = Table1
Left = 176
Top = 56
end
end
在报表欲览器中我设置了添加了一个detaildata 选 single rows
然后添加text object 两个,双击一个text object选中一个字段,然后预览报出
"the following errors ,have occured;
Incorrect band position DetailData1"