Home End User

Tables in rich text problem

edited May 2011 in End User
Hi,

We're using RB12.04 Enterprise with Delphi 2009 and we think we've found
an issue with the DBRichText component.

If the rich text that is being displayed in the DBRichText component
contains a table that has more than one line of text in a cell, it
ignores the carriage returns and the text runs on across the second (or
subsequent) columns rather than wrapping.

For example, if the original rich text table looked something like:

----------------------------
|Here's some | Second column|
|multi line | |
|text | |
-----------------------------
|Second row | |
|text | |
-----------------------------

it gets displayed in report builder as

-----------------------------
|Here's somem|ulti linetext S|econd column
-----------------------------
|Second row t|ext |
-----------------------------

Is this a known issue or are we doing something wrong? Or are tables in
rich text just not supported?

Thanks,

Steve Branley
WCBS Ltd

Comments

  • edited May 2011
    Hi Steve,

    ReportBuilder should use the same RichText libraries as Delphi does. If
    you try to load your RTF data into a DBRichText component on a form (in
    Delphi) does the RichText display correctly?

    If so, please send us a simple example of this issue in .zip format to
    support@digital-metaphors.com and we'll take a look at it for you.


    Regards,

    Nico Cizik
    Digital Metaphors
    http://www.digital-metaphors.com

    Best Regards,

    Nico Cizik
    Digital Metaphors
    http://www.digital-metaphors.com
  • edited June 2011
    Thanks for the reply Nico,

    You're correct - I get the same problem if I load the RTF into a
    standard Delphi TDBRichText control. Looks like this one is out of your
    hands (and mine, sadly). I can't see Embarcadero fixing this just for
    me, somehow...

    Thanks,

    Steve

  • edited June 2011
    Hi Steve,

    Thanks for the info, at first I thought it was a simple alignment issue
    but it looks as though the feature is too advanced for the built in control.

    I suggest taking a look at InfoPower or WPTools. These components
    descend from the Delphi TCustomRichEdit and provide the ability to show
    enhanced items such as Tables and Images inside a RichText.

    http://www.digital-metaphors.com/rbWiki/RCL/RichText/RB_RichText


    Regards,

    Nico Cizik
    Digital Metaphors
    http://www.digital-metaphors.com

    Best Regards,

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