In a report I include an image object in the detail section. I want to show this image only when a certain criterion for the record is met. To do this, I set the Visible property accordingly during the Detail_Format event. This all works fine.
The problem is that for some records, the height of the image is greater than the data I’m displaying. I’d like the detail section to shrink to the height of the data when the image is not visible. Currently, if the data does not extend as far down the page as the image (which may be hidden), the detail height is determined by the image, even when the image is not visible. Is there a way to have the detail height determined by only the data, when the image is not visible?
I have all the Can Shrink properties set to Yes (the image object doesn’t have a Can Shrink property, though).
Thanks for any help.