Universal Image box with fixed width

Stimulsoft Reports.WPF discussion
Post Reply
LukasT
Posts: 306
Joined: Mon May 03, 2010 2:50 am
Location: Czech Republic

Universal Image box with fixed width

Post by LukasT »

Hello,
we need to have in report universal image box (for different ImageDatas), which has fixed width. Only height can be changed automaticly. But it has problem, that the height of box is still the height of original image size. It means, that height is not in ratio to fixed width... see example. Red area is wrong...
Do you have any advice?
LukasT
Posts: 306
Joined: Mon May 03, 2010 2:50 am
Location: Czech Republic

Re: Universal Image box with fixed width

Post by LukasT »

Example...
Attachments
105146_002_-4-_Report (2).mrt
(3.4 KiB) Downloaded 405 times
HighAley
Posts: 8430
Joined: Wed Jun 08, 2011 7:40 am
Location: Stimulsoft Office

Re: Universal Image box with fixed width

Post by HighAley »

Hello.

Please, look at the attached report template.
We made fixed width using scripts.

Thank you.
Attachments
ImageFitWidth.mrt
(1.73 MiB) Downloaded 412 times
LukasT
Posts: 306
Joined: Mon May 03, 2010 2:50 am
Location: Czech Republic

Re: Universal Image box with fixed width

Post by LukasT »

Please, where is yours report template? ;-) Thank you...
HighAley
Posts: 8430
Joined: Wed Jun 08, 2011 7:40 am
Location: Stimulsoft Office

Re: Universal Image box with fixed width

Post by HighAley »

Hello, Lukas.

Sorry, I forgot to attach the template.
I have done it now.

Thank you.
LukasT
Posts: 306
Joined: Mon May 03, 2010 2:50 am
Location: Czech Republic

Re: Universal Image box with fixed width

Post by LukasT »

Thank you Aleksey...
... the template is what we need ;-) I was expecting some such solution...
HighAley
Posts: 8430
Joined: Wed Jun 08, 2011 7:40 am
Location: Stimulsoft Office

Re: Universal Image box with fixed width

Post by HighAley »

Hello, Lukas.

We are always glad to help you.
Let us know if you need any additional help.

Thank you.
LukasT
Posts: 306
Joined: Mon May 03, 2010 2:50 am
Location: Czech Republic

Re: Universal Image box with fixed width

Post by LukasT »

Hello,
I am sorry but it is not working in case of ImageData source type of Image object. GetTagEvent is not triggered, so source variable has still null value .... :-(
HighAley
Posts: 8430
Joined: Wed Jun 08, 2011 7:40 am
Location: Stimulsoft Office

Re: Universal Image box with fixed width

Post by HighAley »

Hello.

Here is a sample report template where an Image Data is used.
It works too.

Thank you.
Attachments
ImageFitWidth_ImageData.mrt
(884.12 KiB) Downloaded 267 times
Post Reply