>Hi All,
>
>How to get variable picture size in detail band in a report? If there is no picture assigned to a record I don't want to make the detail band longer than the text in the record. But If there is a picture assigned, I would like the detail band to grow with the picture. And even better would be if I could also control the max allowable size of the picture at the same time.
1. Stretch the size of the band so it's tall enough to include the picture.
2. Add Print When logic to the picture to skip if empty and mark it as 'remove when blank'
3. Add a horizontal line underneath the picture, mark the print when as .f., and mark it as 'remove when blank'
The line tricks the report writer into sucking up the unused space that the picture would have occupied.