TppDBText becomes blank when WordWrap is set
Hi:
I am new to ReportBuilder so bear with me if this is somthing simple.
I have a varchar(2000) field which I want to print with TppDBText component.
Because the data does not fit into one line, I set the Wordwrap property to
True thinking this will do the job for me. Since then the components print
a blank line. How do I get the TppDBText component to print multiple lines?
Will it print multiple lines or do I have to use a TppDBMemo?
I am generating a pdf report using TExtraDevices from James Waler if this
matters. I am using D5E and RB6.02.
TIA,
Ping Kam
I am new to ReportBuilder so bear with me if this is somthing simple.
I have a varchar(2000) field which I want to print with TppDBText component.
Because the data does not fit into one line, I set the Wordwrap property to
True thinking this will do the job for me. Since then the components print
a blank line. How do I get the TppDBText component to print multiple lines?
Will it print multiple lines or do I have to use a TppDBMemo?
I am generating a pdf report using TExtraDevices from James Waler if this
matters. I am using D5E and RB6.02.
TIA,
Ping Kam
This discussion has been closed.
Comments
wrapped inside of it.
Cheers,
Jim Bennett
Digital Metaphors
http://www.digital-metaphors.com
info@digital-metaphors.com
automatically based on the static width of the dbText. If autosize is true,
I believe it will wrap based on CRLF's (#13#10) embedded in the string text.
Cheers,
Jim Bennett
Digital Metaphors
http://www.digital-metaphors.com
info@digital-metaphors.com
WordWrap is true, you can resize the control and it will wrap until it takes
up the height of the DBText. It should wrap when it encounters CRLF's as
well as when the width of the DBText is reached. Sorry for the confusion.
Cheers,
Jim Bennett
Digital Metaphors
http://www.digital-metaphors.com
info@digital-metaphors.com
in RBuilder\Source as it has a WordWrap method. It essentially wraps text
until it runs out of space as given by the area available in the TppRect
parameter. It will pass back the ending character index in the text when it
finishes wrapping. This will allow the calling routine to be able to
continue wrapping the text on the next available space when it calls
WordWrap again.
Cheers,
Jim Bennett
Digital Metaphors
http://www.digital-metaphors.com
info@digital-metaphors.com