In a report I include an image object in the detail section along side the “real” data. 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 beyond the bottom of the image (which may be hidden), the detail section’s height is determined by the image, even when the image is not visible. Is there a way to have the detail section’s 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.