TppDBText - how to insert a line break?
I am working in RB 12.06, and have need of forcing word-wrap at desired locations in text.
In the OnGetText for the TppDBText object, I am determining whether the wrap is needed, but have been unable to discover how it might be made to occur where I want it, rather than at any whitespace.
How can this be accomplished?
Thanks,
Bill
In the OnGetText for the TppDBText object, I am determining whether the wrap is needed, but have been unable to discover how it might be made to occur where I want it, rather than at any whitespace.
How can this be accomplished?
Thanks,
Bill
This discussion has been closed.
Comments
Set the DBText.WordWrap property to True to let ReportBuilder know it
will contain multiple lines. Then you can manually insert the CRLF
characters where you need.
procedure TForm2.ppDBText1GetText(Sender: TObject; var Text: string);
begin
Text := Text + #13#10 + 'New Line';
end;
Nico Cizik
Digital Metaphors
http://www.digital-metaphors.com
Thanks, Nico. I was overthinking it.