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

Changing default font?

edited May 2002 in General
Hi. We always use New Times Roman on all of our reports. Reportbuilder
always defaults to Arial whenever you start the designer. Is there a way to
change this default behavior? I'd like to set some default behavior option
such that when the RB designer starts, our New Times Roman is already set.

Thanks!
Debbie Erickson

Comments

  • edited May 2002
    Make the following changes in the RB source found in Rbuilder/Source

    In the ppIDE unit in the method "procedure
    TppToolbarManager.LoadToolWindowPreferences;"
    find the lines:

    lsFontName := lIniStorage.ReadString('Format', 'DefaultFontName',
    'Arial');
    liFontSize := lIniStorage.ReadInteger('Format', 'DefaultFontSize', 10);

    then swap 'Arial' and '10' to the desired settings.

    In the ppDsgner unit in the method "procedure
    TppDesignerWindow.LoadStateInfo;"
    find the lines

    FDesignFont.Name := lIniStorage.ReadString('Format', 'DefaultFontName',
    'Arial');
    FDesignFont.Size := lIniStorage.ReadInteger('Format', 'DefaultFontSize',
    10);

    and perform the same swap. Keep in mind that by modifying the source you
    would be responsible for upkeeping these changes in future releases of RB.
    What you can do to avoid that is actually create a descendant of
    TppDesignerWindow which simply overrides the settings which you are manually
    changing above.


    --
    Cheers,

    Alexander Kramnik
    Digital Metaphors

This discussion has been closed.