DisplayFormat error
Hi! I'm from Brazil and this is my problem:
I'm trying set the DisplayFormat to a TppDBCalc component but the error
occurs:
var
MyObjectCalc: TppComponent;
MyObjectCalc := TppDBCalc.Create(FormOfReport);
TppDBCalc(MyObjectCalc).Name := 'DBCalcSum1';
MyObjectCalc.Band := ppReport1.SummaryBand;
MyObjectCalc.DataPipeline := DBPipeline1;
MyObjectCalc.DataField := 'nValues';
TppDBCalc(MyObjectCalc).DBCalcType := dcSum;
TppDBCalc(MyObjectCalc).DisplayFormat := '###,##0.00'; *** (but here raizes
the exception: 'Empty query') ***
(i'm using IBDataSet closed)
Tanks for all!
I'm trying set the DisplayFormat to a TppDBCalc component but the error
occurs:
var
MyObjectCalc: TppComponent;
MyObjectCalc := TppDBCalc.Create(FormOfReport);
TppDBCalc(MyObjectCalc).Name := 'DBCalcSum1';
MyObjectCalc.Band := ppReport1.SummaryBand;
MyObjectCalc.DataPipeline := DBPipeline1;
MyObjectCalc.DataField := 'nValues';
TppDBCalc(MyObjectCalc).DBCalcType := dcSum;
TppDBCalc(MyObjectCalc).DisplayFormat := '###,##0.00'; *** (but here raizes
the exception: 'Empty query') ***
(i'm using IBDataSet closed)
Tanks for all!
This discussion has been closed.
Comments
This is not a known issue.
Try modifying your Delphi library path from RBuilder\Lib to RBuilder\Source.
Then trace the source code.
If you would like to create a simple example using standard Delphi
components, ReportBuilder and the DBDemos data. Email in zip format to
support@digital-metaphors.com and we can check it out here.
--
Nard Moseley
Digital Metaphors Corporation
www.digital-metaphors.com
Best regards,
Nard Moseley
Digital Metaphors
www.digital-metaphors.com