Change a 'string' within a ppDBMemo to Bold?
Help please...does anyone know if it's possible to just make the
string in the 5th line below:
(----aLines.Text := 'SI/Risk Behaviors: '----)
as "Bold" without affecting the field contents which will immediately
follow it? Any ideas would be greatly appreciated. I'd like to keep
the string and the subsequent 'field' text as one object on a Report
Builder report.
procedure TfrmAMReport.ppDBMemo10GetMemo(Sender: TObject;
aLines: TStrings);
begin
if dtmMain.qryRoundInfoRD_SIRisk.Text <> '' then
aLines.Text := 'SI/Risk Behaviors: ' +
dtmMain.qryRoundInfoRD_SIRisk.Text
else
aLines.Text := 'SI/Risk Behaviors: None ';
end;
string in the 5th line below:
(----aLines.Text := 'SI/Risk Behaviors: '----)
as "Bold" without affecting the field contents which will immediately
follow it? Any ideas would be greatly appreciated. I'd like to keep
the string and the subsequent 'field' text as one object on a Report
Builder report.
procedure TfrmAMReport.ppDBMemo10GetMemo(Sender: TObject;
aLines: TStrings);
begin
if dtmMain.qryRoundInfoRD_SIRisk.Text <> '' then
aLines.Text := 'SI/Risk Behaviors: ' +
dtmMain.qryRoundInfoRD_SIRisk.Text
else
aLines.Text := 'SI/Risk Behaviors: None ';
end;
This discussion has been closed.
Comments
text through the TppRichText.Richtext string property in the band's
BeforePrint event. RB's rich text control relies on Delphi's TRichEdit.
See the help file on rich text, and there are also demos in the main reports
demo project which alter the rich text component ..\RBuilder\Demos\Reports\
Cheers,
Jim Bennett
Digital Metaphors
http://www.digital-metaphors.com
info@digital-metaphors.com