TdaBDEQuery and TraCodeModule error at run-time
Dear All.
I have created report in DADE, so my project was automatically added by some
units (e.g. raCodMod, daSQL, ppDBBDE, daDataView, daQueryDataView, daDBBDE,
ppModule, ppVar, ppCtrls, ppPrnabl)
Because my project is a thint client application, therefore I had to get rid
of those units from my uses clause (with those units in my uses clause my
application requires BDE)
I have some coding as below to load my report template and print it by
retrieving data from TClientDataSet.
with TppReport1 do begin
Template.FileName := 'myreport.rtm';
Template.LoadFromFile;
lDataModule := daGetDataModule(ppReport1);
if lDataModule = nil then
lDataModule := TdaDataModule.CreateForReport(ppReport1)
else
lDataModule.Template.New;
DataPipeline := ppDbPipeline1;
Print;
end;
...
Everything is almost fine so far, except that there are 2 nag dialog boxes
pop up everytime I preview the report, the nag message is
"TdaBDEQueryDataView, TraCodeModule" not found", I can just click the ignore
button to get rid of the dialog box, but that's quite anoyying, please
suggest me what units shall I add to my uses clause to avoid to see the nag
dialog boxes and the application must remains not to require BDE.
Thanks so much
Kongthap Thammachat
jeud@yahoo.com
ICQ: 13026976
I have created report in DADE, so my project was automatically added by some
units (e.g. raCodMod, daSQL, ppDBBDE, daDataView, daQueryDataView, daDBBDE,
ppModule, ppVar, ppCtrls, ppPrnabl)
Because my project is a thint client application, therefore I had to get rid
of those units from my uses clause (with those units in my uses clause my
application requires BDE)
I have some coding as below to load my report template and print it by
retrieving data from TClientDataSet.
with TppReport1 do begin
Template.FileName := 'myreport.rtm';
Template.LoadFromFile;
lDataModule := daGetDataModule(ppReport1);
if lDataModule = nil then
lDataModule := TdaDataModule.CreateForReport(ppReport1)
else
lDataModule.Template.New;
DataPipeline := ppDbPipeline1;
Print;
end;
...
Everything is almost fine so far, except that there are 2 nag dialog boxes
pop up everytime I preview the report, the nag message is
"TdaBDEQueryDataView, TraCodeModule" not found", I can just click the ignore
button to get rid of the dialog box, but that's quite anoyying, please
suggest me what units shall I add to my uses clause to avoid to see the nag
dialog boxes and the application must remains not to require BDE.
Thanks so much
Kongthap Thammachat
jeud@yahoo.com
ICQ: 13026976
This discussion has been closed.
Comments
Try creating a custom dataview template that relies on TClientDatasets and
not the BDE. This will be easier than trying to manage the conversion of the
template after the template is loaded. There is an example of a custom
dataview template using the BDE in the end user demos directory. You'll have
to adapt that approach to use TClientDatasets and then you should be able to
move away from the BDE.
You should have raCodMod in your uses clause if you want to use RAP reports
at runtime. If you want to show the Calc tab in the end user designer, add
raIDE to the uses clause.
Cheers,
Jim Bennett
Digital Metaphors
http://www.digital-metaphors.com
info@digital-metaphors.com