How would one go about using a ppDBRichText with the JITPipeline? What type would the field in the JITPipeline be? How would you return the rich text in the OnGetFieldValue?
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.
Comments
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.
Here is an example of this appraoch:
http://www.digital-metaphors.com/tips/RTFViaJIT.zip
Cheers,
Jim Bennett
Digital Metaphors
http://www.digital-metaphors.com
info@digital-metaphors.com
don't have to use dbRichtext and the JIT.
Cheers,
Jim Bennett
Digital Metaphors
http://www.digital-metaphors.com
info@digital-metaphors.com