How To…Access RTF Data via the JITPipeline

Question

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

Solution

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.

Download: RtfViaJIT.zip

Sample Delphi code: