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

InfoPower Rich Text Support

edited April 2010 in General
I am trying to add support for doing mail merges to rich text and
incorporating the extra features of the InfoPower rtf component (bitmap
images, specifically). I've followed the instructions in readme in the
\infopower folder, the package "ReportBuilder wwwRichEdit" shows as a
design package (rbIP114.bpl), and I've included ppwwriched in my uses
statement.

(Delphi Rad Studio 2010 Update1, RB Pro 11.08, IP 2010 release version.)

But when I print, I don't get formatted rich text, just the actual text eg

{\rtf1\ansi\ansicpg1252\deff0{\fonttbl{\f0\fnil\fcharset0 Lucida
Calligraphy;}}
{\colortbl ;\red0\green0\blue255;\red0\green0\blue0;}
{\*\generator Msftedit 5.41.21.2509;}\viewkind4\uc1\pard\qc\cf1\lang3081
\par
of\par
\par

I se this if I preview the report at design time, or when I print it
from the program.

If I leave out the ppwwriched unit it prints fine, but without any
images. If I remove the package from my design time packages the rtf
also shows correctly at design time.

Can anyone point me at what I'm missing?

Thanks
Rob

Comments

  • edited April 2010
    I just emailed you an updated ppWWRichEd.pas. Looks like our installation
    for Delphi 2010 is currently using an older version of this source file.
    This will be corrected going forward.

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



    Best regards,

    Nard Moseley
    Digital Metaphors
    www.digital-metaphors.com
  • edited April 2010
    On 6/04/2010 5:59 AM, Nard Moseley (Digital Metaphors) wrote:
    Hi Nard

    There still seems to be an issue with mailmerge. It actually works if
    the fields are inserted with just <> around them, but with
    it doesn't. You end up with a truncated version of the
    field name - missing the first letter. Editing a report in designer, if
    I insert the following fields into an rtf component

    entry_date
    family_code
    student_code




    I get the following in preview:
    ntry_date
    amily_code
    tudent_code
    8/04/2010
    ABCDEF
    UVWXYZ

    Same thing happens when running the report from a compiled program.

    Rob
  • edited April 2010
    Hi Robert,

    I sent you another patch that should fix this issue. If anyone else would
    like this patch, please send a short email to support@digital-metaphors.com.

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