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

Rich Text not loading images from image field

edited July 2008 in General
Hi, I have a database table with a field of type Image. I am using
Delphi's RichText component to store data (including text and images) to
this field. I have used Report Builder's DBRichText component to link to
this field. But when I print the report, the text is displayed correctly,
but it doesnt load the image as well. Is there something else I need to do?
Thanks

(Delphi 7, RBuilder 10.09)



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

Comments

  • edited July 2008
    Delphi's TRichEdit cannot display images.

    ---------------------------------------------
    Article: ReportBuilder's RichText architecture
    ----------------------------------------------


    The RichText in ReportBuilder is a wrapper around Delphi's TRichEdit which
    in turn relies on Windows. 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


    --
    Nard Moseley
    Digital Metaphors
    www.digital-metaphors.com

    Best regards,

    Nard Moseley
    Digital Metaphors
    www.digital-metaphors.com
  • edited July 2008
    Thanks a lot for this :)

    I am now using the TRichView component in conjunction with the
    ReportBuilder RichView wrapper. It works great.






    --- posted by geoForum on http://delphi.newswhat.com
  • edited July 2008
    >Thanks a lot for this :)

    Thank you for this tip. I got the idea to use TRichView wrapper for
    QuickReport and it has solved my problem with Table formatting, which was
    caused because QuickReport rich text component does not format colors in
    tables. Same thing with Fast Reports.

    See my support post for FastReport here:
    http://www.fast-report.com/en/forum/index.php?showtopic=4456

    Regards,
    ND



    --- posted by geoForum on http://delphi.newswhat.com
This discussion has been closed.