How To…Access RTF Data via the JITPipeline


“How can I use a JITPipeline to provide access to a DBRichtext component on my report?”


The following example implements the JITPipeline GetfieldAsString event to access RTF data. For this example a Delphi TRichEdit is placed on a form and used as the source of the rich text. Another solution could use an .rtf file as the source of the rich text – in which case a FileStream would be used rather than the MemoryStream that is used here.


Sample Delphi code: