|
发表于 2020-1-23 08:27:02
|
显示全部楼层
问题主要是出在几个单元没有加的原因。在这个例子interface里面,你可以看到。
interface
{ By removing the 'x' which begins each of these compiler directives,
you can enable different functionality within the end-user reporting
solution.
DADE - the data tab where queries can be created by the end-user
BDE - BDE support for the Query Tools
ADO - ADO support for the Query Tools
IBExpress - Interbase Express support for the Query Tools
RAP - the calc tab, where calculations can be coded at run-time
(RAP is included with ReportBuilder Enterprise)
CrossTab - adds the CrossTab component to the component palette in the
report designer.
CheckBox - adds a checkbox component to the component palette in the
report designer.
TeeChart - adds a teechart component to the report designer component
palette. You must have TeeChart installed. More information
is available in ..\RBuilder\TeeChart\ReadMe.doc
UseDesignPath - determines whether the path used by the Database
object on this form is replaced in the OnCreate event handler of
this form with the current path.}
{$DEFINE DADE} {remove the 'x' to enable DADE}
{$DEFINE BDE} {remove the 'x' to enable Borland Database Engine (BDE) }
{x$DEFINE ADO} {remove the 'x' to enable ADO}
{x$DEFINE IBExpress} {remove the 'x' to enable Interbase Express}
{$DEFINE CrossTab} {remove the 'x' to enable CrossTab}
{x$DEFINE RAP} {remove the 'x' to enable RAP}
{x$DEFINE CheckBox} {remove the 'x' to enable CheckBox}
{x$DEFINE TeeChart} {remove the 'x' to enable standard TeeChart}
{x$DEFINE UseDesignPath} {remove the 'x' to use the design-time settings of Database object on this form}
uses
{$IFDEF DADE}
daIDE,
{$ENDIF}
{$IFDEF BDE}
daDBBDE,
{$ENDIF}
{$IFDEF ADO}
daADO,
{$ENDIF}
{$IFDEF IBExpress}
daIBExpress,
{$ENDIF}
{$IFDEF CrossTab}
ppCTDsgn,
{$ENDIF}
{$IFDEF RAP}
raIDE,
{$ENDIF}
{$IFDEF CheckBox}
myChkBox,
{$ENDIF}
{$IFDEF TeeChart}
ppChrtUI,
{$ENDIF}
把这几个加上。就可以了。
(注:已经试验通过了,有data 页。如果还是不明白,请在看看例子。)
|
|