how to print image as needed?

Stimulsoft Reports.NET discussion
Post Reply
progame
Posts: 46
Joined: Sat Nov 25, 2006 9:12 am
Location: china

how to print image as needed?

Post 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.
progame
Posts: 46
Joined: Sat Nov 25, 2006 9:12 am
Location: china

how to print image as needed?

Post 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?
Vital
Posts: 1278
Joined: Fri Jun 09, 2006 4:04 am

how to print image as needed?

Post 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.
Post Reply