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

richtext and tabstopps

edited July 2005 in General
Hello,

is it possible to get right aligned tabstopps in one of the
richeditcomponents of the ReportBuilder?
I would prefer the TppDBRichText component.

I've tried the \tx2000\tqr \tab syntax within rtf-format.
It works fine for known offsets in twips. But I want to align to the
right margin of the Report/TppDBRichText.

The output should be sort of that:
a text left aligned a long text right aligned
a text left aligned a text right aligned

Any ideas - every guess is welcome?

Thanks

Anton Leithner

--- posted by geoForum on http://delphi.newswhat.com

Comments

  • edited July 2005
    Hi Anton,

    All ReportBuilder components are initially measured in Report Units (i.e.
    inches, mm, screen pixels, etc.). If you know the offset that the tabs need
    to be in twips, you should be able to easily convert (1 inch = 1440 twips)
    this value to the report units you are using. You can get access to the
    paragraph tab stops of the richtext using the TppRichText.Paragraph
    property.

    --
    Regards,

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

    Best Regards,

    Nico Cizik
    Digital Metaphors
    http://www.digital-metaphors.com
  • edited July 2005
    Hi Nico,

    if I understood correctly, there is no way to set right aligned tabs.
    Because the TppRichText.Paragraph.Tab supports only left alignment.

    Regards,

    (i.e.
    need
    twips)

    Anton Leithner

    --- posted by geoForum on http://delphi.newswhat.com
  • edited July 2005
    Hi Anton,

    With the ReportBuilder built in RichText support... yes. You might check
    out using InfoPower or WPTools as they may offer this feature in their
    richtext support which can be added to ReportBuilder.

    ----------------------------------------------
    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.


    --
    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.