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

Full Justification in TppRichText

edited February 2008 in General
I'm using RB 7.03 on Delphi 7 and I want to set a portion of the text in a
TppRichEdit to full justification, but I'm having no luck. Can anyone help
me out? I'm using InfoPower RichEdit support. It's pretty straightforward
in a memo, but I need to use rich text for some additional formatting. I
tried to "fool" the component by slipping \qj into the text (as per the Rich
Text Specification), but it ignored the slash as a control character and the
\qj gets printed along with the rest of the text. I feel like there should
be a way to do this, I just can't figure it out.

TIA

Danny

Comments

  • edited February 2008
    RB InfoPower RichEdit Support
    ---------------------------------
    ReportBuilder includes a component that enables the TppRichText and
    TppDBRichText controls in ReportBuilder to use the formatting capabilities
    of InfoPower's TwwRichEdit when rendering RTF data. The ppWWRichEd.pas unit
    located in the ..\RBuilder\InfoPower directory defines a TwwDBRichEdit
    descendant and then registers the class with ReportBuilder. This enables the
    TppRichText and TppDBRichText controls in ReportBuilder to use the
    formatting capabilities of TwwDBRichEidt when rendering data.


    --
    Nard Moseley
    Digital Metaphors
    www.digital-metaphors.com

    Best regards,

    Nard Moseley
    Digital Metaphors
    www.digital-metaphors.com
  • edited February 2008
    Not sure if it is any indication of exactly what I'm doing wrong, but the
    following line of code:

    MyRichText.Paragraph.Alignment := taFullJustified;

    gives the following error when I compile:

    Incompatible types: 'TAlignment' and 'TppTextAlignment'

    I expected that to work after adding the InfoPower RichEdit support.
  • edited February 2008
    Further...

    MyRichText.TextAlignment := taFullJustified;

    compiles, but the text still appears left justified, so i assume it has no
    effect.
  • edited February 2008

    Use TwwRichEdit to edit the rtf data and then assign the rtf data to the
    TppRichText component.

    The RB InfoPower support enables RB to use the formatting capabilities of
    InfoPower's TwwRichEdit when /rendering/ RTF data, however it does not
    provide any facilities for /editing/ the rtf data.


    For RB 11 we are adding some enhancements to the TppRichText, including
    built-in support for

    myRichText.Paragraph.TextAlignment := taFullJustified;




    --
    Nard Moseley
    Digital Metaphors
    www.digital-metaphors.com

    Best regards,

    Nard Moseley
    Digital Metaphors
    www.digital-metaphors.com
  • edited February 2008
    Oh, thanks for the clarification. That makes sense now.

    Is there a target release date for RB 11?
This discussion has been closed.