I put a report components on TDataModule and when I double click to open the report designer Delphi pop up a message that there may be instability and slow performance issues.
It looks like TDataModule is not a good container of report component?
Recent versions of Delphi have no issue with placing with Reports on DataModules.
You must be using a very old version Delphi. There was one (at most two) versions of Delphi in which the IDE had some bugs that prevented the RB Designer from working with DataModules. We added that message.
-- Nard Moseley Digital Metaphors www.digital-metaphors.com
Best regards,
Nard Moseley Digital Metaphors www.digital-metaphors.com
I just checked the RB source code and Delphi 5 is the only version. Delphi 6 and later do not have the issue. With Delphi 5, you can place the Report component on a TDataModule and use it at run-time in. However, you cannot use the RB Desigenr in the Delphi IDE.
A work around is to use a TForm and never call Show - thus you have an invisible form. For an example, check out RBuilder\Demos\Reports. There is also an example in the Applications section of the Developers Guide tutorials.
Going forward, I recommend updating to a newer version of Delphi and updating to RB 11. (RB 11 include support for D6, D7, D2005, D2006, D2007, D2009.)
-- Nard Moseley Digital Metaphors www.digital-metaphors.com
Best regards,
Nard Moseley Digital Metaphors www.digital-metaphors.com
> I just checked the RB source code and Delphi 5 is the only version. What do you mean?
I just want to put the TppReport in a central place. So TDataModule will be a good candidate to populate the TADOQuery, manipulate the report, preview the report.
We have no planning in upgrading to the latest RB in near future.
Comments
Recent versions of Delphi have no issue with placing with Reports on
DataModules.
You must be using a very old version Delphi. There was one (at most two)
versions of Delphi in which the IDE had some bugs that prevented the RB
Designer from working with DataModules. We added that message.
--
Nard Moseley
Digital Metaphors
www.digital-metaphors.com
Best regards,
Nard Moseley
Digital Metaphors
www.digital-metaphors.com
We are using Delphi 5.
I just checked the RB source code and Delphi 5 is the only version. Delphi 6
and later do not have the issue. With Delphi 5, you can place the Report
component on a TDataModule and use it at run-time in. However, you cannot
use the RB Desigenr in the Delphi IDE.
A work around is to use a TForm and never call Show - thus you have an
invisible form. For an example, check out RBuilder\Demos\Reports. There is
also an example in the Applications section of the Developers Guide
tutorials.
Going forward, I recommend updating to a newer version of Delphi and
updating to RB 11. (RB 11 include support for D6, D7, D2005, D2006, D2007,
D2009.)
--
Nard Moseley
Digital Metaphors
www.digital-metaphors.com
Best regards,
Nard Moseley
Digital Metaphors
www.digital-metaphors.com
What do you mean?
I just want to put the TppReport in a central place. So TDataModule will be
a good candidate to populate the TADOQuery, manipulate the report, preview
the report.
We have no planning in upgrading to the latest RB in near future.
Delphi 5 has a bug in the IDE.
With prior and later Delphi versions it works fine.
I recommend updating your Delphi version and ReportBuilder version.
The Report placed on a TDataModule will work at run-time. (The limitation is
the Delphi IDE).
Another option is to use a TForm without calling Show - thus you have an
invisible form.That will provide the same solution as the TDataModule.
That is disappointing to hear. You will not be able to take advantage of the
vast improvements that have been made since D5, RB 5.
--
Nard Moseley
Digital Metaphors
www.digital-metaphors.com
Best regards,
Nard Moseley
Digital Metaphors
www.digital-metaphors.com