Dealing with Rich Text components
Is there an easy way to deal with Rich Text (DB or otherwise) which gives a
consistent result with the rest of the report. I have a data column in my
SQL statement which I am reading into a Rich text component since this gives
a better word wrap than a normal DBMemo component (as far as I can tell).
My report font is set on Arial 6pt and I have defined the RichText property
of the RichText component to the same font definitions - however it seems
stuck on 7pt and therefore looks unseemly when printed out. If I export it
to the Pragnaan PDF device it looks quite ugly.
Is there a setting or routine which ensures that the RichText font
definition can be set at runtime (for instance) since while designing it
seems to lookk OK.
Is there a better way of word wrapping (as opposed the character wrapping)
in a (DB)Memo report component that anybody can suggest?
Thanks for any advice -
cheers - David
consistent result with the rest of the report. I have a data column in my
SQL statement which I am reading into a Rich text component since this gives
a better word wrap than a normal DBMemo component (as far as I can tell).
My report font is set on Arial 6pt and I have defined the RichText property
of the RichText component to the same font definitions - however it seems
stuck on 7pt and therefore looks unseemly when printed out. If I export it
to the Pragnaan PDF device it looks quite ugly.
Is there a setting or routine which ensures that the RichText font
definition can be set at runtime (for instance) since while designing it
seems to lookk OK.
Is there a better way of word wrapping (as opposed the character wrapping)
in a (DB)Memo report component that anybody can suggest?
Thanks for any advice -
cheers - David
This discussion has been closed.
Comments
The DBMemo component should word wrap automatically by default with the
CharWrap set to false. I am unclear how this word wrapping is insufficient
for your needs. Try setting the DBMemo.Stretch property to True to be sure
the text takes up the entire control box.
--
Nico Cizik
Digital Metaphors
http://www.digital-metaphors.com
three day course and got back this evening.
I seem to remember that when I was using the DBMemo component it was
wrapping on characters (on or off) which is why I was trying the RichText
equivalent. In fact the client rang this afternoon (during the course) to
complain that the text in the RichText component was unreadable when
converting to PDF so I'll have to experiment this weekend with the DBMemo
one and see how it behaves with both CharWrap settings. I'm already using
Stretch set to True.
If I still don't get the results I want I'll have to go into the (PDF
converter) code and see what is going on which is causing this symptom.
cheers - David
The two third party utilities used to convert ReportBuilder reports to PDF
(Waler, and Pragnaan) allow a user to choose if they want their RichText to
be displayed in the PDF file as a bitmap or as plain text. The bitmap will
have poor resolution in some cases because the device is doing a pixel
conversion of the RichText component. The plain text method will have
better quality but none of the RichText formatting will be available
(basically a memo).
--
Nico Cizik
Digital Metaphors
http://www.digital-metaphors.com
I'm using Pragnaan to do the export - I used to use Waler but got to prefer
the Pragnaan kit better (sorry James if you're reading this) because of the
way a couple of their features worked for me.
cheers - David.