Page 1 of 1

Image scaling to fit width

Posted: Fri Jan 24, 2020 10:58 am
by Tobias
I would like to have an image in a databand (loaded from the data source) which is always scaled to fit the whole width of the databand and to grow/shrink vertically to keep the original aspect ratio.

The image is set to "Stretch=True" and "Aspect Ratio=True". Image and databand are set to CanGrow/CanShrink=True. What happens is, that as soon as I set CanGrow=True, the image grows beyond (!) the databand width and also results in new pages beeing created.

I've attached a simple example.

Is this a bug, am I doing something wrong or is this simply not possible at all?

Re: Image scaling to fit width

Posted: Sat Jan 25, 2020 12:02 pm
by Lech Kulikowski
Hello,

Please try to set the MaxSize property.

If the issue still present, please send us a sample which result you need.

Thank you.

Re: Image scaling to fit width

Posted: Mon Jan 27, 2020 11:06 am
by Tobias
This doesn't work either. If I set the MaxSize.Width, then the image is correctly scale to the width, but somehow I end up with a lot of vertically free space after the image.
See attachment.

Re: Image scaling to fit width

Posted: Fri Jan 31, 2020 2:58 pm
by Lech Kulikowski
Hello,

We need some additional time to investigate the issue.

Try to set the MaxSize-Height property also.

Thank you.