Changing default font?
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
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
This discussion has been closed.
Comments
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
http://www.digital-metaphors.com
info@digital-metaphors.com