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

Report component on TDataModule

edited November 2008 in General
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?

Comments

  • edited November 2008

    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
  • edited November 2008
    > Recent versions of Delphi have no issue with placing with Reports on

    We are using Delphi 5.
  • edited November 2008
    > 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
  • edited November 2008
    > 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.
  • edited November 2008


    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
This discussion has been closed.