Images Displayed on Reports

  • Thread starter Thread starter Sandy A
  • Start date Start date
S

Sandy A

Hi
I only wish to display an image in a report section if the image exists.
Sometimes there is no image, and there is a lot of whitespace that I can't
seem to get rid of within the section, as I am having to set the size of the
image control in the report design. The image control is linked to a jpg
file, the locn of which is stored in my db, so it is easy to test for the
presence of the image.

Can I do any conditional formatting within the section, that will act upon
the size of the image? I have tried to do conditional resizing, but it
resizes for all records based on the first value processed.
Cheers,
Sandy
 
You should use an unbound object frame and set the cangrow and canshrink
properties to yes.
 
I was actually able to solve this myself by using the code

Me.ItemImage.Visible = Not IsNull(Me.strImageLocn)

in the Format event of the Detail section of the report.
Got help from another posting that I had missed earlier.

Thanks anyway, hope this helps someone else!
 
Back
Top