GetThumbnail exception 'ArgumentOutOfRangeException' Parameter 'width' is Zero
Posted: Fri Aug 12, 2022 9:53 pm
Version: Stimulsoft.Reports.Web.NetCore 2022.3.4
AspNetCore 5.0.11
While trying to get the first page thumbnail:
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')'