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

Images not displaying

edited February 2004 in General
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?

Comments

  • edited February 2004
    Hi Brian,

    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.

    --
    Best Regards,

    Nico Cizik
    Digital Metaphors
    http://www.digital-metaphors.com
  • edited February 2004
    I have the graphic type set to JPEG, no image is displayed. I added a
    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!

  • edited February 2004
    Brian,

    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.

    --
    Best Regards,

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