Image in Databand

Stimulsoft Reports.NET discussion
Post Reply
Brendan
Posts: 309
Joined: Sun Jul 16, 2006 12:42 pm
Location: Ireland

Image in Databand

Post by Brendan »

Hi Stimulsoft,

I'm wondering if the following is somehow possible.
If I place an Image control inside a Databand and point it to a multipage tiff file, is there any way I can get it to render the other pages in the tiff file apart from just the first.

Thanks.
Vital
Posts: 1278
Joined: Fri Jun 09, 2006 4:04 am

Image in Databand

Post by Vital »

Hello!

Please add following code to BeforePrintEvent of Databand:

Code: Select all

Image1.Image.SelectActiveFrame(System.Drawing.Imaging.FrameDimension.Page, 0);
Thank you.
Brendan
Posts: 309
Joined: Sun Jul 16, 2006 12:42 pm
Location: Ireland

Image in Databand

Post by Brendan »

Hi Vital,
Thanks for that.

I was loading my images via the File property so Image was null.
but I replaced Image1.Image with Image1.ImageToDraw and it seems to have worked.
Post Reply