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

Preview Theme

edited August 2007 in General
Hi,

How can I force the theme programatically to always be say, the Whidbey
theme?

Ken

Comments

  • edited August 2007

    -------------------------------------
    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');



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

    Best regards,

    Nard Moseley
    Digital Metaphors
    www.digital-metaphors.com
  • edited August 2007
    Nard,

    Thanks very much.

    Are there any other themes available/coming such as those for Office 2007?

    Ken
  • edited August 2007

    This page contains a list of available themes, I do not see any newer
    releases. The architecture is open for anyone to create themes, therefore I
    expect to see newer themes coming out in the future.

    http://www.rmklever.com/delphitbx.html

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

    Best regards,

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