How To…Change the existing display formats


“How do I change the current display formats provided with ReportBuilder (or add new display formats)?”


The built-in display formats are defined in the GetDisplayFormats routine of the TppDisplayFormat class inside the ppDisplayFormat.pas file. Descending from this class gives you the opportunity to replace these values as well as customize the way ReportBuilder handles certian display formats.

Once you have created a descendant that provides the needed changes, simply assign the global variable gcDisplayFormat to the new descendant class and the new information will be used.


Sample Delphi code:

Assign the new descendant class…

– New GetDisplayFormats routine…