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

TwwRichEdit & changing to TLMDRichText

edited February 2006 in General
We have recently changed from using Infopower's RichEdit control to
LMD's TLMDRichText.

Previously we used ReportBuilder's TppWWRichEdit to deal with Rich Text
correctly when exported as outlines in the Report Builder tech tips
article : http://tinyurl.com/977uz

Do we need to do anything now that we are using TLMDRichText?

Thanks, Tom.

Comments

  • edited February 2006

    If TLMDRichText descends from Delphi's TCustomRichEdit then you can probably
    use the same technique to register it with RB.




    Best regards,

    Nard Moseley
    Digital Metaphors
    www.digital-metaphors.com
  • edited February 2006
    Nard Moseley (Digital Metaphors) wrote:

    Thanks Nard. TLMDRichText descends from TCustomMemo, we tested the image
    issue and it does nto seem to be a problem. I guess it's just a
    TCustomRichEdit issue.

    Just dotting all the i's for the delphi 10 upgrade.

    Cheers, Tom.
  • edited February 2006
    Tom Corcoran wrote:

    Unfortunately testing tested the wrong version :-(

    The image shows in the TLMDRichText but not in the report. How can we
    register TLMDRichText with ReportBuilder...it descends from TCustomMemo?

    Thanks, Tom.
  • edited February 2006

    You would need to develop a custom wrapper component for the TLMDRichText.

    The TppRichText is a wrapper component for Delphi's TCustomRichEdit.
    Therefore it is not going to be compatible. Below is an article with more
    details. Note that the publishers of products such as WPTools and TRichView
    have developed wrapper components that work with RB.

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




    --
    Tech Support mailto:support@digital-metaphors.com
    Digital Metaphors http://www.digital-metaphors.com



    Best regards,

    Nard Moseley
    Digital Metaphors
    www.digital-metaphors.com
  • edited February 2006
    Nard Moseley (Digital Metaphors) wrote:

    Ok, that makes sense. I have tried to do one like with TwwDbRichEdit but
    ppRegisterRichEditClass looks for a TCustomRichEdit descendant and
    TLmdRichEdit descends from TCustomMemo.

    Right now no images from out rich texts are showing in our reports.

    I'm a bit lost what to do. Adding to ppRichTxDrwCmd or whatever is
    currently over my head.

    Is there anyway Digital Metaphors could work with LMD to get a solution
    like you have done for Infopower?

    Thanks a lot,

    Tom.
  • edited February 2006

    We do not have the resources to pursue developing a wrapper component. I
    would talk to the publishers of the LMD component about developing one.

    TRichView and WPTools have each developed an RB wrapper for their
    components.

    TppRichText is a wrapper for TCustomRichEdit so any component that descends
    from TCustomRichEdit can be registered to work as the rich edit engine for
    that component. Examples are Delphi's TRichEdit and Infopower's
    TwwRichEdit).

    Sorry, but we simply do not have the resources to pursue this right now.




    Best regards,

    Nard Moseley
    Digital Metaphors
    www.digital-metaphors.com
This discussion has been closed.