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

How to assign a bitmap image to TppImage component at run time?

edited August 2003 in General
Hi,

I have a TppImage in the report, I try to call
Image1.Picture.BitMap.LoadFromStream(...), but it can't be compiled.

What am I wrong?

Thanks

Comments

  • edited August 2003
    Hi William,

    Where are you getting the initial image from? Is it on a database or in a
    memory stream of some sort? If the image is in file, try using the
    LoadFromFile method. If the image already exists on a form perhaps, try
    using the TppImage.Picture.Assign method to assign the TppImage to the
    original.

    --
    Best Regards,

    Nico Cizik
    Digital Metaphors
    http://www.digital-metaphors.com
  • edited August 2003
    Hi, Nico

    I have a signature bitmap save in the windows registry, and defined a
    report function (registered through raRegisterFunction) to get the bitmap
    image from registry and save it into a Variant variable, but next step is
    how to assign this variable into the TppImage?

    Thanks

    William

  • edited August 2003
    Hi William,

    The LoadFromStream function is not natively included in RAP. You will need
    to create a pass-thru function to handle this case. For information on
    creating RAP pass-thru functions, please see the ReportBuilder Developer's
    guide.

    --
    Best Regards,

    Nico Cizik
    Digital Metaphors
    http://www.digital-metaphors.com
This discussion has been closed.