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

TppRichText and embedded images

edited July 2007 in General
I use a TppRichText component in a report and its LoadFromFile method to
load the content from an RTF file created with MS Word. If the RTF file
includes images (bmp, jpg, wmf) the report does not print them (Word does
it). Is there a way to make that work? I am currently using ReportBuilder 7.

Thanks

Bruno Cuzzi
Metasoft Italy

Comments

  • edited July 2007
    ----------------------------------------------
    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/

    --
    Regards,

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

    Best Regards,

    Nico Cizik
    Digital Metaphors
    http://www.digital-metaphors.com
  • edited August 2007
    I have an application that generates maintenance work orders. I have
    customers wanting to place fairly complex checklists inside the work order
    as graphics or richtext. The checklists include tables, lines checkboxes
    and similar high end richtext items created in word but saved in rich text.
    The problem is that they span over about 3 pages and I am thinking rich text
    is the best way to go with page returns, etc.

    I am currently use Infopower richtext and RB 10.05 but they only print about
    a page and then just print on top of footer and stop. Two questions:

    1. Is richtext the best way to handle this? I don't see any way to print a
    Word file in the middle of a report.
    2. It sounds like WPTools is the closes way to accomplish this. Would that
    be your recommendation?

    Thanks,
    Bob

  • edited August 2007
    Hi Bob,

    1. Yes, using Richtext is probably the easiest way to display a word
    document in ReportBuilder.

    2. Yes, I would recommend taking a look at WPTools if InfoPower is not
    currently working the way you need.

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