Images not displaying
I'm attempting to create a very simple report in RB5.5 that shows jpeg
images. The text fields are displaying, but the jpegs are blank. The query
I'm using (against an Oracle database) was the same one being used
previously when the report was being generated into an html file, so I know
it's returning the image data. I've added ppJPEG to the uses clause. This
has got to be something simple and stupid. Any ideas?
images. The text fields are displaying, but the jpegs are blank. The query
I'm using (against an Oracle database) was the same one being used
previously when the report was being generated into an html file, so I know
it's returning the image data. I've added ppJPEG to the uses clause. This
has got to be something simple and stupid. Any ideas?
This discussion has been closed.
Comments
If you are using TppDBImages, be sure you set the GraphicType property to
JPEG. If this does not help, try loading your image into a DBImage or
TImage in Delphi and see of you can get it to show up.
--
Nico Cizik
Digital Metaphors
http://www.digital-metaphors.com
tppImage to the report, and on the GetPicture event of the original
TppDBImage object I added this code:
QueryImagesIMAGE.SaveToFile('Image.jpg');
ppImage1.Picture.LoadFromFile('image.jpg');
The image is displayed correctly in the tppImage. So the image is getting
to the report, and the database is reading it up correctly. Any other
ideas?
Thanks!
It seems that all your settings are correct. My suggestion now would be to
download a trial version of ReportBuilder 7.03 and test with that. In my
tests, I was able to load a JPEG into a TppDBImage component without
problems. If you still encounter the problem, please send an example of an
image that will not load and I'll test it here.
--
Nico Cizik
Digital Metaphors
http://www.digital-metaphors.com