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

Runtime TppReport

edited February 2008 in General
Hi, I want to create a inherited class of TppReport for simple reports, this
class will be targeted to reports that use one single dataset, my idea is to
pass a query and headers for the fields, and the class generate the report
by itself.

There is any example of how to build something like that? Any
recommendation, warning or pitfalls?

Thanks

Comments

  • edited February 2008
    Hi Anderson,

    We do not have any examples of this however it should not be too difficult
    to descend from the TppReport object. Since you are creating a simpler
    version of the report object, you might try descending from the
    TppBandedReport object like the TppChildReport does. See the ppReport.pas
    file for more info.

    --
    Regards,

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

    Best Regards,

    Nico Cizik
    Digital Metaphors
    http://www.digital-metaphors.com
  • edited February 2008

    Rather than a descendent of TppReport, I would create something a like a
    TmyLayoutBuilder class that given a report and a dataset, can build a report
    layout. Or, if you assign the Report.Datapipeline prior to calling it, then
    it could just use Report.Datapipeline to get the field info.

    Also, rather than build the entire report layout in could, you could
    pre-define some of it using the report designer and then save that design to
    an .rtm file.

    The report wizard is an example of a layout builder type of class. The
    difference is that it has a user interface that asks questions.

    --
    Nard Moseley
    Digital Metaphors
    www.digital-metaphors.com

    Best regards,

    Nard Moseley
    Digital Metaphors
    www.digital-metaphors.com
This discussion has been closed.