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

Richtext- mailmerge lining up numbers.

edited May 2005 in General
Is it possible to line up numbers at a tab stop?

Thanks,

John

Comments

  • edited May 2005
    Hi John,

    I'm a bit unclear about what you are trying to do. Are you trying to line a
    mailmerge field with the rest of a richtext document and certain tabs?
    Please let me know a little more about what you would like your report to
    look like.

    --
    Best Regards,

    Nico Cizik
    Digital Metaphors
    http://www.digital-metaphors.com
  • edited May 2005
    Nico Cizik (Digital Metaphors) wrote:
    Nico, Thanks for looking into this!

    It's really very simple, I think.

    I have a RichText component set up for mail merging. The document is a
    contract with lots of references to currency fields. The layout should
    look like the following;

    House Cost $100,000.00
    Extras $5,000.00
    Total $105,000.00

    But, when I enforce right justification on just the currency fields, the
    static text items the precede the fields become unaligned. If I don't
    right-justify the fields, the decimals don't line up.

    So, I'm looking for a way to line these up without messing up the text
    on the same line.

    Thanks for ANY hints you can give.

    John
  • edited June 2005
    Hi John,

    Unfortunately the RichText editor that is included with ReportBuilder is not
    that sophisticated. You might try taking a look at InfoPower or WPTools.
    They both offer a more advanced RichText editor and feature set. See the
    following article for more information.

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

    TRichView
    ----------
    TRichView is a suite of native Delphi components for displaying, editing,
    and printing hypertext documents. Documents can contain tables, pictures,
    and images. TRichView is available from www.trichview.com. There is a
    wrapper for available for using TRichView inside ReportBuilder, see
    http://www.digital-metaphors.com/Subpages/Downloads/CompanionRCL.html or
    http://www.trichview.com/resources/

    --
    Best Regards,

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

    Thanks again. Yes, I'm using InfoPower's libraries, and their richedit
    component snaps in nicely with RB...I think its just general lack of
    knowledge on my part on how to manipulate a rich text editor correctly
    to set up tabs, columns, etc.

    I'll pursue this, and report back. Thanks for the help.

    John
This discussion has been closed.