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

Connecting at runtime

edited July 2006 in Datapipelines
Hi,

I would like to create a report file in the designer and then connect the
data from my application at runtime.
I'm creating the datasets for reporting at runtime and therefore I can't use
the designer to connect to the fields.
How can I get to the DBText components at runtime?

I'm using Report Builder standard v.9.01 with Delphi 2005.

Comments

  • edited July 2006
    Hi Valdimar,

    Are you loading the report from a template file? If so, you will have to
    use template events to loop though the report components and connect all the
    data components from there.

    If you are not loading from templates, you can simply use the component name
    to connect to the correct datapipeline and field.

    DBText.DataPipeline := MyPipeline;
    DBText.DataField := 'MyField';

    --
    Regards,

    Nico Cizik
    Digital Metaphors
    http://www.digital-metaphors.com

    Best Regards,

    Nico Cizik
    Digital Metaphors
    http://www.digital-metaphors.com
  • edited July 2006
    Thank you,

    I didn't notice the components being added to my code :)

    It comes back to my reluctance to read PDF documents.


This discussion has been closed.