Not Finding Query Data View
Hi,
I have just created a Report Builder report and saved it to a file,
receipt.rtm. I have been trying to preview it from within my program, but
every time I get the message 'TdaDataAdsQueryDataView not found'. We have
been putting various compiled units in the uses section, but nothing seems
to work. The code in the program is:
procedure TPosForm.BitBtnReceiptClick(Sender: TObject);
begin
try
with MainDataModule.ppReport1 do
begin
MainDataModule.AdvantageReport.IsConnected := FALSE;
MainDataModule.AdvantageReport.ConnectPath :=
MainDataModule.MainAdsConnection.ConnectPath;
MainDataModule.AdvantageReport.IsConnected := TRUE;
Template.New;
Template.FileName := 'c:\possys 300\reports\receipt.rtm';
Template.LoadFromFile;
ShowAutoSearchDialog := FALSE;
PrinterSetUp.DocumentName := 'Receipt';
DeviceType := dtScreen;
Print;
end;
finally
MainDataModule.AdvantageReport.IsConnected := FALSE;
end;
end;
(AdvantageReport is a TAdsConnection on the main data module.)
Can anybody please help, either by telling me which compiled unit to use, or
in any other way?
Martin Houlton
P.C. Data
I have just created a Report Builder report and saved it to a file,
receipt.rtm. I have been trying to preview it from within my program, but
every time I get the message 'TdaDataAdsQueryDataView not found'. We have
been putting various compiled units in the uses section, but nothing seems
to work. The code in the program is:
procedure TPosForm.BitBtnReceiptClick(Sender: TObject);
begin
try
with MainDataModule.ppReport1 do
begin
MainDataModule.AdvantageReport.IsConnected := FALSE;
MainDataModule.AdvantageReport.ConnectPath :=
MainDataModule.MainAdsConnection.ConnectPath;
MainDataModule.AdvantageReport.IsConnected := TRUE;
Template.New;
Template.FileName := 'c:\possys 300\reports\receipt.rtm';
Template.LoadFromFile;
ShowAutoSearchDialog := FALSE;
PrinterSetUp.DocumentName := 'Receipt';
DeviceType := dtScreen;
Print;
end;
finally
MainDataModule.AdvantageReport.IsConnected := FALSE;
end;
end;
(AdvantageReport is a TAdsConnection on the main data module.)
Can anybody please help, either by telling me which compiled unit to use, or
in any other way?
Martin Houlton
P.C. Data
This discussion has been closed.
Comments
You need to add the daADS.pas file to your project to get access to these
components. The daADS.pas file is located in the \RBuilder\Demos\4. EndUser
Databases\Advantage\1. Native\... directory.
--
Nico Cizik
Digital Metaphors
http://www.digital-metaphors.com