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

Justify Text in a ppRichText Component

edited October 2003 in End User
Hi all,

I have delphi 6 ent. with Report builder Ent. 6.03.
Is it possible to justify a line or paragraph in the alignement of the
ppRichText component, it seems just to have Leftjustify, centerJustify and
rightjustify? Justlike we do in the ppMemo.

Thanks in advance
Jo?o Gomes

Comments

  • edited October 2003
    ----------------------------------------------
    Article: ReportBuilder's RichText architecture
    ----------------------------------------------


    The RichText in ReportBuilder is a wrapper around Delphi's TRichEdit which
    in turn relies on Windows. There are two versions of Windows richedit -
    RichEd32.dll is the older one and RichEd20.dll is a newer one (RichEd32 is
    being phased out). Delphi by default relies on RichEd32 - the older version.
    To use some of the more advanced features of Windows RichEdit, see the topic
    on InfoPower RichEdit Support below.

    In general Windows RichEdit supports the type of formatting that you can do
    using WordPad.



    InfoPower RichEdit Support
    ---------------------------
    InfoPower from Woll2Woll Software is a popular database add-on product for
    Delphi. InfoPower's TwwRichEdit components support the Windows RichEdit2
    format. This format allows the rich text data to contain embedded bitmaps
    and OLE objects. For more information please see http:\\www.Woll2Woll.com.

    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.


    WPTools Support
    ----------------
    WPTools is a collection of components used to edit and print formatted text.
    With its own RTF engine, WPTools offers numerous features not supported by
    the standard Windows RichEd20.dll. This control lets you use tables,
    paragraph frames, headers and footers etc. Using the optional ReportBuilder
    support units for WPTools 2.x, you can print the enhanced WPTools features
    (justified text, tables, graphics...) within your ReportBuilder reports. For
    more information please see http:\\www.wptools.de.

    --
    Best Regards,

    Nico Cizik
    Digital Metaphors
    http://www.digital-metaphors.com
  • edited October 2003
    I can?t compile the project,
    because he can?t find this file "wwriched.dcu", and I don?t have it or the
    .pas file that is on the uses clauses of the ppwwriched.dcu. why?

    thanks in advance

    Jo?o Gomes

  • edited October 2003
    Hello again,
    I can?t compile the tppwwriched.pas because it can?t find the wwriched.pas,
    may be because I don't have the infopower suite, I only have the wptools
    suite, how can I integrate this suite with the reportbuilder?

    Thanks

    Joao Gomes

  • edited October 2003
    Hi Joao,

    The wwRiched.pas is a file used only for InfoPower... It is not needed to
    work with WPTools. When you purchase WPTools, I believe they provide their
    own delphi package to enable you to integrate it with ReportBuilder, but you
    should not be using any files with the prefix 'ww' with WPTools.

    --
    Best Regards,

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