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, Full Article…
Search the Wiki
Delphi RTF
TECH TIP: Copy RTF Data from TRichEd to TppRichText You can copy RTF data from Delphi’s TRichEd to ReportBuilder’s TppRichText control by using an intermediate memory stream: var lRTFStream: TMemoryStream; begin {create temp memory stream} lRTFStream := TMemoryStream.Create; {save the TRichEd's rtf data to the memory stream} RichEdit1.Lines.SaveToStream(lRTFStream); {load the rtf stream to the TppRichText} Full Article…
Assigning Attributes
TECH TIP: Assigning Font Attributes of RichText component You can assign font attributes to a RichText component by using the SelStart, SelLength properties or the the SelectAll method to select the text. Then assign the font to the RichText.SelAttributes property. Example: var lFont: TFont; begin lFont := TFont.Create; lFont.Name := 'Arial'; lFont.Size := 14; lFont.Color Full Article…