Page 1 of 1

how to print image as needed?

Posted: Wed Aug 06, 2008 10:02 am
by progame
three field: name, description, image

in databand:
|{name} | {description} |
________________________
|{image}
|
|
|_______________________

not all rows has image, i need show image control only when it has image. how can i do that? i use conditions, but it still has space in the bottom, because the data band's height can't change.

how to print image as needed?

Posted: Thu Aug 07, 2008 12:49 am
by progame
i add script in before print event of image,
pic.Enabled = Table["Field"] != DBNull.Value;

i think if it's null value and canshrink be true, then it will not print. why not do this in report engine?

how to print image as needed?

Posted: Thu Aug 07, 2008 9:00 am
by Vital
Hello,
i add script in before print event of image,
pic.Enabled = Table["Field"] != DBNull.Value;
Please set CanShrink property of band to true.
i think if it's null value and canshrink be true, then it will not print. why not do this in report engine?
Issue is fixed. Patch will be available in build from 8 August.

Thank you.