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

Image Issue

edited February 2006 in General
I have built a report (RB7)that displays a column with jpeg images.
The report works in designer when I go to preview.
With the same set of data at runtime however I get a "Cannot generate
report. Invalid Image." error.

I can't figure out why preview would work but not at runtime.

What am I missing?

Thanks

Comments

  • edited February 2006
    Seems like I had a similar problem and I'm not a 100% sure what I did to fix
    it but it seems like it was due to an image field in the table having
    something other than null in it. Again, not real sure now as it was over a
    year ago when I saw the problem but it seems like it had something to do
    with a record that didn't actually contain an image but had something in the
    binary field...

    Hope that helps,

    glenn

  • edited February 2006
    Hi Mitch,

    1. Be sure you've defined the type of image to be displayed in the
    DBText.GraphicType property.

    2. Be sure you are including the proper files in your uses clause. For
    instance, if you are showing JPEG images, you will need to include ppJPEG in
    your uses clause.

    --
    Regards,

    Nico Cizik
    Digital Metaphors
    http://www.digital-metaphors.com

    Best Regards,

    Nico Cizik
    Digital Metaphors
    http://www.digital-metaphors.com
  • edited February 2006
    Nico Cizik (Digital Metaphors) wrote:

    It was the ppJpeg in the include.

    Thanks
This discussion has been closed.