DBMemo Printing multiple lines without word wrap
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
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
This discussion has been closed.
Comments
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.
Nico Cizik
Digital Metaphors
http://www.digital-metaphors.com
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
I sent a small example demonstrating this to your email.
Nico Cizik
Digital Metaphors
http://www.digital-metaphors.com