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

TppImage ShiftRelativeTo a TppRichEdit?

edited September 2004 in General
Hi,

I have to develop a letter which mail merge information from our database.
I follow the dg and use a TppRichEdit to accomplish that.

I have to print the signature at the end of the letter so I use a TppImage.
However, depends upon the information in the database, the height of the
RichEdit varies (the RichEdit stretch is set to true) so it sometimes
conflicts with the signature.

I cannot add the TppImage to the TppRichEdit. The TppImage does not have
the ShiftRelativeTo property. I have tried to change the top of the
TppImage to the height of the TppRichEdit in the band's beforeprint event,
the TppRichEdit's OnPrint event and the TppImage's OnPrint event without
luck.

Can someone tell me how to do this?

Thanks,
Ping Kam

Comments

  • edited September 2004
    Hi Ping,

    Try placing the image inside a TppRegion component with the ShiftRelativeTo
    set to the TppRichEdit. You can turn the border of the region off using the
    Pen.Style property.

    --
    Best Regards,

    Nico Cizik
    Digital Metaphors
    http://www.digital-metaphors.com
  • edited September 2004
    Works like a charm.

    Thanks,
    Ping Kam

This discussion has been closed.