ppDBImage Question
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
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
This discussion has been closed.
Comments
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
Nico Cizik
Digital Metaphors
http://www.digital-metaphors.com