Home General

ppDBImage Question

edited May 2010 in General
I am using D7 and RB7. I have a report where on each page that get's
printed, a predetermined image is to be displayed. There will only be a
maximum of 15 pages. The images are a stored in a database. I have not
been able to figure out how to pull the image from the database for each
page. Currently I am using a ppDBImage and it's GetPicture method. Is this
the best way to handle this? If so, how? If not, what should I do and how?

Jeff

Comments

  • edited May 2010
    Hi Jeff,

    The TppDBImage component is designed to be directly connected to a BLOB
    datafield containing image information so if the image is inside the same
    dataset as the one connected to the report, you just need to connect it to
    the proper field. To manually load an image, I suggest using the TppImage
    component and manually assigning the TppImage.Picture.Graphic property of
    the component in the BeforePrint event of the band.

    ppImage1.Picture.Graphic.LoadFromStream(ImageStream);

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