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

Dynamic creation of report, possible to set the theme?

edited March 2006 in End User
In our programs we dynamic create the report for end users,
TppDesigner.create(self) ... etc

In version 10.01 we saw that the designer has a theme you can select by
the menu View-->Themes

Question: Can the value of the Themes also be set from the delphi program
at runtime? We have not found a property for this. Any help wold be welcome.

Kind regards,



We use the following:

Delphi 7
ReportBuilder Pro 10.01



--- posted by geoForum on http://delphi.newswhat.com

Comments

  • edited March 2006


    -------------------------------------
    Tech Tip: ReportBuilder Themes
    -------------------------------------

    ReportBuilder 10 introduces support for Themes (Skins). There are a couple
    of options for specifying which theme is used.


    1. Report Designer

    From the Report Designer select View | Themes from the main menu and then
    select the theme that you would like to use. The specified theme will be
    stored in RBuilder.ini and used as the default theme the next time you run
    RB.


    2. RBuilder.ini.

    When deploying an application, you can deploy RBuilder.ini so that
    ReportBuilder will use a specific theme.


    3. TppThemeManager

    At run-time TppThemeManager can be used to programmatically use specify a
    theme.

    TppThemeManager is defined in ppToolbarTBX.pas. Here are the public class
    methods.

    TppThemeManager = class
    public
    class function GetCurrentThemeName: String;
    class procedure GetThemeNames(aThemeNames: TStrings);
    class procedure SavePreferences;
    class procedure SetCurrentTheme(aThemeName: String);
    end;


    Example:

    uses
    ppToolbarTBX;


    TppThemeManager.SetCurrentTheme(Office2003');




    Best regards,

    Nard Moseley
    Digital Metaphors
    www.digital-metaphors.com
  • edited March 2006
    Very nice..

    Did not know this. Thanks for the very fast reply



    --- posted by geoForum on http://delphi.newswhat.com
This discussion has been closed.