Home General
New Blog Posts: Merging Reports - Part 1 and Part 2

Accessing the report dataset

edited September 2008 in General
D7, RB10

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?

Thanks,
Bob

Comments

  • edited September 2008

    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
  • edited September 2008
    Boy was I going around the world to try to get the dataset.
    That works perfectly.

    Thanks,
    Bob

This discussion has been closed.