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

Rich Text issue

edited March 2006 in General
Hi,

The RTF component support teechart?
I'll explain myself better. I use InfoPower and RB. With TwwDBRichEdit I
can add (with copy and paste) TeeCharts and OLE objects. But when I try to
render a report with this data it doesn't show this data at all.

Any tips?

Thanks
Ricardo

Comments

  • edited March 2006
    Hi Ricardo,

    It is possible to add InfoPower support to the RB RichText component.

    ----------------------------------------------
    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
  • edited March 2006
    The other approach (though it sounds like you may not need this) is to
    create an image with a TChart object and replace the image in a RichEdit
    with the TChart's image.

    --
    Ed Dressel
    Team DM
  • edited March 2006
    Hi Nico,

    I almost worked. :-)
    At design-time, OK, if I load a RTF file into a richEdit all components
    appear. But at runtime it seems that the component used is still the
    TRichEdit.
    I don't know if I installed OK, the steps I did to install follows:

    1) Open rbIP97 package
    2) Substitute ip3000v6 for ip4000v7 in the uses clause
    3) Install

    []'s
    Ricardo


  • edited March 2006
    Hi Ricardo,

    Did you copy the ppWWRichEd.pas file into your RB library path? This file
    is necessary in order to use the InfoPower rich text component at run time.
    See the ReadeMe.doc file located in the \RBuilder\InfoPower\... directory
    for more information and detailed steps for installation.

    --
    Regards,

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

    Best Regards,

    Nico Cizik
    Digital Metaphors
    http://www.digital-metaphors.com
  • edited March 2006
    Worked fine. Thank you very much.
    I'm quite sure this new related issue must be considered by pragnaan people,
    but just in case I'm posting here.
    After installing the IP support I reinstalled pragnaan export devices and
    made a test. With the very same report containing a RTF component with
    "special contents" like TeeChart I commanded a simple print and an
    exportToPDF. The screen print shows all the content, but the exportToPDF
    only exports items supported by TRichEdit.

    Am I right that I have to consider this issue with pragnaan people?

    thanks
    Ricardo


  • edited March 2006
    Hi Ricardo,

    Yes, this is a Pragnaan issue. I would recommend contacting Pragnaan
    support about this issue for a quicker response.

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