Home General
New Blog Posts: Merging Reports - Part 1 and Part 2

TppDBText - how to insert a line break?

edited February 2014 in General
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

Comments

  • edited February 2014
    Hi Bill,

    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;

    Best Regards,

    Nico Cizik
    Digital Metaphors
    http://www.digital-metaphors.com
  • edited February 2014
    Nico Cizik (Digital Metaphors) wrote:


    Thanks, Nico. I was overthinking it.
This discussion has been closed.