Dynamically created Datamodule (embedded in component) with pipelines not visible in ReportDesigner
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
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
This discussion has been closed.
Comments
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.
--
Nico Cizik
Digital Metaphors
http://www.digital-metaphors.com
at designtime! So, the pipelines on the 'embedded' datamodule are not found.
Is there a way to 'register' the pipelines (only designtime).
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.
--
Nico Cizik
Digital Metaphors
http://www.digital-metaphors.com