Positioning an image in Designer -> Max-Width?

Stimulsoft Reports.NET discussion
Post Reply
mietzekotze
Posts: 39
Joined: Tue Dec 20, 2011 8:07 am
Location: Germany

Positioning an image in Designer -> Max-Width?

Post by mietzekotze »

Hey guys,

I want my report to show pictures i grab from a database (in base64). Therefore i have an image-field in the report. the problem is, that all of th images have different sizes, so i want them to have a fixed width and still keep the relations off the image.

I'll attach the MRT-File plus the xsd and xml schemas you need. Hope you can help me.

Regards
Attachments
report.zip
(97.75 KiB) Downloaded 266 times
Alex K.
Posts: 6488
Joined: Thu Jul 29, 2010 2:37 am

Re: Positioning an image in Designer -> Max-Width?

Post by Alex K. »

Hello,

Please try to set the necessary size for image component in your report template, set the CanShrink and CanGrow properties to false, and Stretch property to true.

Thank you.
mietzekotze
Posts: 39
Joined: Tue Dec 20, 2011 8:07 am
Location: Germany

Re: Positioning an image in Designer -> Max-Width?

Post by mietzekotze »

I've tried that (see my configuration here: http://i.imgur.com/Zx9fFo9.png) and that is, what happens: http://i.imgur.com/UrPzYyI.png.

What i need is, that the DataBand grows dynamically with the image, since i dont know the exactly width of ervery image
Alex K.
Posts: 6488
Joined: Thu Jul 29, 2010 2:37 am

Re: Positioning an image in Designer -> Max-Width?

Post by Alex K. »

Hello,

Please try to set the MaxSize property.

Thank you.
mietzekotze
Posts: 39
Joined: Tue Dec 20, 2011 8:07 am
Location: Germany

Re: Positioning an image in Designer -> Max-Width?

Post by mietzekotze »

Hello,

neither the image nor the DataBand has the MaxSize property. Can you tell me, where i could find it?

Thanks!
Alex K.
Posts: 6488
Joined: Thu Jul 29, 2010 2:37 am

Re: Positioning an image in Designer -> Max-Width?

Post by Alex K. »

Hello,

Please try to set the "Professional" mode for property grid.

Thank you.
Attachments
Capture.png
Capture.png (88.07 KiB) Viewed 2830 times
Post Reply