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

Dynamically created Datamodule (embedded in component) with pipelines not visible in ReportDesigner

edited September 2003 in General
Hi, I'm using RB 6.02 with Delphi 5 and I have the following problem.

I'm using a component (self made) which, when activated, creates a
datamodule (with Application.FormCreate). This datamodule holds several
pipelines, datasources and query components.
I use this component on a form which also holds a TppReport and
TppDesigner. When I run the program and start the report-designer I can see
and use the pipelines from the 'embedded' datamodule.
When I try to do the same thing in designtime it doesn't. First I activate
my 'data-component'. This results in 'embedded' datamodule being created.
After that I doubleclick the TppReport to open the report-designer. This
time the pipelines from the 'embedded' datamodule are NOT visible in the
designer!! Why not?? And what should I do to get it working?

All help is welcome,

TIA,

Ronald

Comments

  • edited September 2003
    Hi Ronald,

    ReportBuilder loops through the Screen.DataModules and Screen.Forms arrays
    to find any datapipelines to be used in the designer. If your Datamodule
    is not showing up in either of these arrays, RB will not display them. You
    may have to create a package and load it as a Delphi Component to get this
    to work. If possible, please send an example of what you are trying to do
    and we can try to get it working over here.

    --
    Best Regards,

    Nico Cizik
    Digital Metaphors
    http://www.digital-metaphors.com
  • edited September 2003
    But Screen.DataModules and Screen.Forms are NOT used to find the pipelines
    at designtime! So, the pipelines on the 'embedded' datamodule are not found.
    Is there a way to 'register' the pipelines (only designtime).

    Ronald

  • edited September 2003
    Hi Ronald,

    If possible please send an example of your project, including your custom
    component to support@digital-metaphors.com so we can perhaps research the
    problem and code either a fix or workaround for you.

    --
    Best Regards,

    Nico Cizik
    Digital Metaphors
    http://www.digital-metaphors.com
This discussion has been closed.