Image Stretch

Stimulsoft Reports.NET discussion
Lech Kulikowski
Posts: 6197
Joined: Tue Mar 20, 2018 5:34 am

Re: Image Stretch

Post by Lech Kulikowski »

Hello,

There are several ways to fix it in your project.
- place images in the project folder and use:
report.Dictionary.Variables["SystemPath"].Value = "";

- set one of the next properties:
!imageComponent.Stretch || imageComponent.AspectRatio == true || imageComponent.ImageRotation != StiImageRotation.None

- load images in the GetImageData event with the following script:
(sender as StiImage).ImageBytes = System.IO.File.ReadAllBytes(SystemPath+DataSource.Column);

Thank you.
ibrahim
Posts: 19
Joined: Tue Apr 09, 2019 6:31 am

Re: Image Stretch

Post by ibrahim »

Hello Lech Kulikowski,
Thanks your very much its work , but there is problem in the size of image when active AspectRatio the image show very small, not as the image properties , I try to active can grow but the image become to large
this is the image when run the project:
https://drive.google.com/open?id=1yEeC2 ... 5SxMXL-YBY
this is the image propriety
https://drive.google.com/open?id=173jXR ... 5kULi6r1DZ
ibrahim
Posts: 19
Joined: Tue Apr 09, 2019 6:31 am

Re: Image Stretch

Post by ibrahim »

Hello Lech Kulikowski,
Thanks your very much its work , but there is problem in the size of image when active AspectRatio the image show very small, not as the image properties , I try to active can grow but the image become to large
this is the image when run the project:
https://drive.google.com/open?id=1yEeC2 ... 5SxMXL-YBY
this is the image propriety
https://drive.google.com/open?id=173jXR ... 5kULi6r1DZ
Lech Kulikowski
Posts: 6197
Joined: Tue Mar 20, 2018 5:34 am

Re: Image Stretch

Post by Lech Kulikowski »

Hello,

Sorry, maybe we did not exactly understand your issue. Which result do you need?
Also, please send us your image for analysis.

Thank you.
ibrahim
Posts: 19
Joined: Tue Apr 09, 2019 6:31 am

Re: Image Stretch

Post by ibrahim »

Hello,
The problem is in size of image when Active Aspect-ratio ,the image show very small
this is the image when run the project:
Image
this is the image propriety
Image
Lech Kulikowski
Posts: 6197
Joined: Tue Mar 20, 2018 5:34 am

Re: Image Stretch

Post by Lech Kulikowski »

Hello,

Please upload your files again.

Thank you.
ibrahim
Posts: 19
Joined: Tue Apr 09, 2019 6:31 am

Re: Image Stretch

Post by ibrahim »

Hello,
this are the Images again
Image
Image
Lech Kulikowski
Posts: 6197
Joined: Tue Mar 20, 2018 5:34 am

Re: Image Stretch

Post by Lech Kulikowski »

Hello,

Please send us your original images which used in the report for analysis.

Thank you.
ibrahim
Posts: 19
Joined: Tue Apr 09, 2019 6:31 am

Re: Image Stretch

Post by ibrahim »

Hello,

Thanks yours for the replay, I solve the problem by increase the picture size
Lech Kulikowski
Posts: 6197
Joined: Tue Mar 20, 2018 5:34 am

Re: Image Stretch

Post by Lech Kulikowski »

Hello

We are always glad to help you!

Thank you.
Post Reply