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

Customize the TppViewer class.

edited September 2005 in General
FYI: RB9.02/D7

Hi all.

I'd like to customize the TppViewer class but this class is basically a
component of RB in delphi. Basically changing the color of the panel and
some other things.

I'd like receiving some advices in this case. I wouldn't like to mess up
the component.

Thanks.

Fabio.

Comments

  • edited October 2005
    Hi Fabio,

    What customizations would you like to make? Are you trying to customize the
    Preview window or the actual TppViewer component that can be placed on a
    form?

    For instance, if you are using the TppViewer component, you can change the
    background color simply by setting the TppViewer.Color property. (TppViewer
    descends from the TCustomPanel class).

    --
    Regards,

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

    Best Regards,

    Nico Cizik
    Digital Metaphors
    http://www.digital-metaphors.com
  • edited October 2005
    I would like to change the background color to a softer color. But the
    property color is not published for the component (TppViewer). Got it?

    If I do as you suggest me I don't get the color property. When I compile
    get the error "Undeclared identifier: 'color'".

    Thanks

  • edited October 2005
    Hi Fabio,

    Sorry, the color property will be exposed for the next release of
    ReportBuilder. In order to expose this now, you will need to create a
    TppViewer descendent.

    What other customizations would you like to make? Are you trying to
    customize the Preview window or the actual TppViewer component that can be
    placed on a form?

    --
    Regards,

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

    Best Regards,

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