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

Adding properties to the report

edited July 2004 in General
Hi again

We are currently adding stylesheet support to ReportBuilder, and I need some
help on how to do that easiest.
I was planning on adding an extra property to the report-object, and when
the user loads a report then load all the style-information to an internal
format that the styles could access through a property on the Report.

I have some questions to the above:
- Is there an easier way to do this?
- How do I register a new Report-object with ReportBuilder

Thank you
Steffen

Comments

  • edited July 2004
    Hi Steffen,

    Looking at your requirements, I do not think there is an easier way to do
    this. Another option would be to store the style information outside the
    report in a separate file and use it for each template that get loaded.
    This could turn out to be more difficult however because you will need to
    alter the template code.

    Each ReportBuilder class in regestered in the RegPro.pas file. You will
    need to register your new class in this file as well as register it with
    Delphi so it can be streamed and saved.

    --
    Best Regards,

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