JIT RichText

TECH TIP: Using Delphi’s TRichEd with the JITPipeline

The following function can be used to copy rtf data from a Delphi TRichEd to a Delphi String. Once you have the rtf data in a string you can return the value in the JITPipeline.OnGetFieldAsString and JITPipeline.OnGetFieldValue events.

Note: you can define the JITPipeline’s Field.DataType as dtBlob, dtMemo, or dtString. It really does not matter in this case, because the TppDBRichText component simply calls DataPipeline.GetFieldAsString which for the JITPipeline fires the OnGetFieldAsString event.