Search the Wiki

Viewing 73 to 75 of 408 items

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…

0

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…

0

How To…Render a Form Control to a Report

Question “How can I render a control on my form, to my report?” Solution The following example uses the ReportBuilder PaintBox control to render a TProgressBar and a TGauge to a report. The TProgressBar is a TWinControl descendant and the TGauge is a TGraphicControl descendant. Download:  RenderControlToPaintBox.zip procedure TForm1.ppPaintBox1Print(Sender: TObject); begin // size the paint  Full Article…

0