TECH TIP: ReportBuilder’s RichText Architecture
The RichText in ReportBuilder is a wrapper around Delphi’s TRichEdit which in turn relies on Windows. There are two versions of Windows richedit – RichEd32.dll is the older one and RichEd20.dll is a newer one (RichEd32 is being phased out).
Delphi by default relies on RichEd32 – the older version.
A problem occurs when using the RichEd32 with Office 2000 installed and trying to print.
To correct this problem, we made a modification, to use RichEd20 when possible.
Options:
- You could try downloading a newer version of RichEd20 from MS web site.
- You could try downloading the latest printer driver and testing with
another printer. - If you want to revert to the old RichText behavior, add an initialization
section to the bottom of your unit and code:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 |
uses ppDrwCmd; initialization ppRegisterRichEditClass(TRichEdit); For an example of the above, check out ppDrwCmd.pas. It registers a class called TppRichEdit: initialization ppRegisterRichEditClass(TppRichEdit); |