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

DBMemo Printing multiple lines without word wrap

edited January 2017 in General
Hi,

I have to print data that consists of multiple lines separated by CRLF.
Some of these lines can be longer that the width of the control.
In those situations the data should be cut off (like TppDBText without
Autosize).
I see that DBMemo doesn't have a WordWrap property (never noticed) I can
turn off.
The other option is to use a DBText but that one only treats CRLF when
WordWrap is on.
I only need a a new line when it sees a CRLF.

This is a very long lineSecond lineThird line

when using a control with width 11 should be printed as:

12345678901
This is a v
Second line
Third line

What are my options here?



Using D2007 and RB14.08

--
Kind regards,

Jeroen Röttink
JR-soft software solutions

Comments

  • edited January 2017
    Hi Jeroen,

    Memos in ReportBuilder by definition are word wrapped controls only.

    One option would be to add each separate line of your memo to individual
    TppLable controls with AutoSize set to False.

    Another would be to manually measure and cut off any excess text before
    the memo is printed.

    Best Regards,

    Nico Cizik
    Digital Metaphors
    http://www.digital-metaphors.com
  • edited January 2017
    Op 11-1-2017 om 17:53 schreef Nico Cizik (Digital Metaphors):


    I go for the last option as there are a lot of controls involved.
    Do you have an example of this to be used in RAP?


    --
    Kind regards,

    Jeroen Röttink
    JR-soft software solutions
  • edited January 2017
    Hi Jeroen,

    I sent a small example demonstrating this to your email.

    Best Regards,

    Nico Cizik
    Digital Metaphors
    http://www.digital-metaphors.com
This discussion has been closed.