GetThumbnail exception 'ArgumentOutOfRangeException' Parameter 'width' is Zero

Stimulsoft Reports.WEB discussion
Post Reply
Sherif Ahmed
Posts: 13
Joined: Fri Aug 12, 2022 8:25 pm

GetThumbnail exception 'ArgumentOutOfRangeException' Parameter 'width' is Zero

Post by Sherif Ahmed »

Version: Stimulsoft.Reports.Web.NetCore 2022.3.4
AspNetCore 5.0.11

While trying to get the first page thumbnail:

Code: Select all

var reportPath = StiNetCoreHelper.MapPath(this, "Reports/TwoSimpleLists.mrt");
var report = new StiReport();
report.Load(reportPath);

var thumbnail = report.Pages[0].GetThumbnailAsBytes(100);
var thumbnail2 = report.Pages[0].GetThumbnail(100, 100, true);

Code: Select all

System.ArgumentOutOfRangeException: 'Parameter "width" (System.Single) must be greater than 0, was 0 (Parameter 'width')'
Lech Kulikowski
Posts: 6245
Joined: Tue Mar 20, 2018 5:34 am

Re: GetThumbnail exception 'ArgumentOutOfRangeException' Parameter 'width' is Zero

Post by Lech Kulikowski »

Hello,

We need some additional time to investigate the issue, we will let you know about the result.

Thank you.
#7716
Lech Kulikowski
Posts: 6245
Joined: Tue Mar 20, 2018 5:34 am

Re: GetThumbnail exception 'ArgumentOutOfRangeException' Parameter 'width' is Zero

Post by Lech Kulikowski »

Hello,

The issue is fixed. The fix will be available in the next release build.

Thank you.
Sherif Ahmed
Posts: 13
Joined: Fri Aug 12, 2022 8:25 pm

Re: GetThumbnail exception 'ArgumentOutOfRangeException' Parameter 'width' is Zero

Post by Sherif Ahmed »

Hello,
When expected to be the next release?

Thank you
Lech Kulikowski
Posts: 6245
Joined: Tue Mar 20, 2018 5:34 am

Re: GetThumbnail exception 'ArgumentOutOfRangeException' Parameter 'width' is Zero

Post by Lech Kulikowski »

Hello,

In September.
Post Reply