I am using a component to do a special type of export on the data query in RB. The component requires that I assign a dataset property. How can I get the dataset (sql query) from a RB report dynamically?
if myReport.DataPipeline is TppDBPipeline then begin lDBPipeline := TppDBPipeline(myReport.DataPipeline) ; lDataSet := lDBPipeline.DataSource.Dataset; end;
-- Nard Moseley Digital Metaphors www.digital-metaphors.com
Best regards,
Nard Moseley Digital Metaphors www.digital-metaphors.com
Comments
Try this..
uses
ppDBPipe;
if myReport.DataPipeline is TppDBPipeline then
begin
lDBPipeline := TppDBPipeline(myReport.DataPipeline) ;
lDataSet := lDBPipeline.DataSource.Dataset;
end;
--
Nard Moseley
Digital Metaphors
www.digital-metaphors.com
Best regards,
Nard Moseley
Digital Metaphors
www.digital-metaphors.com
That works perfectly.
Thanks,
Bob