Page 1 of 2

Upgrade to .net 7 breaks reporting

Posted: Mon Mar 27, 2023 8:41 am
by YoabOGTL
Hello I have been using the reports without any issues but upgrading an existing project to .net 7 breaks Report.Web.NetCore with this error :

Method not found: 'Void SixLabors.ImageSharp.Formats.Tiff.TiffEncoder.set_Compresion(System.Nullable '1)'

I am using the latest Nuget package 2023.2.1 application is asp.net 7, didn't change the reports that have been working perfectly since .net core 3.1

This is the relevant part of my code:

// Cumulative Receipt
case 4:


report.Load(Path.Combine(_hostingEnvironment.WebRootPath + $@"\Reports\PaymentReceipt.mrt"));
((StiPostgreSQLDatabase)report.Dictionary.Databases["IPCConnection"]).ConnectionString = connectionString;
report.DataSources["HeaderInfo"].Parameters["PId"].Value = pid;
report.DataSources["Payments"].Parameters["PId"].Value = pid;
StiImage stiImage = report.GetComponents()["Image2"] as StiImage;
string q = _hostingEnvironment.WebRootPath + $@"\images\pepperpike.png";
string z = _hostingEnvironment.WebRootPath + $@"\images\logoRC.png";
if (proptypeid == 1)
{
Image myImage = Image.FromFile(z);
stiImage.Image = myImage;
}
else
{
Image myImage = Image.FromFile(q);
stiImage.Image = myImage;
}

break;

Thanks in advance

Re: Upgrade to .net 7 breaks reporting

Posted: Mon Mar 27, 2023 6:33 pm
by Lech Kulikowski
Hello,

Please send us a sample project that reproduces the issue for analysis.

Thank you.

Re: Upgrade to .net 7 breaks reporting

Posted: Mon Mar 27, 2023 10:30 pm
by YoabOGTL
Hello Please find attached the minimalist sample project which reproduces exactly the same error, as well as a video

Re: Upgrade to .net 7 breaks reporting

Posted: Tue Mar 28, 2023 7:24 pm
by Max Shamanov
Hello,

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

Thank you.

Re: Upgrade to .net 7 breaks reporting

Posted: Tue Mar 28, 2023 7:46 pm
by YoabOGTL
Ok Thank you

Re: Upgrade to .net 7 breaks reporting

Posted: Thu Mar 30, 2023 7:28 am
by Max Shamanov
Hello,

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

Thank you.
#10876

Re: Upgrade to .net 7 breaks reporting

Posted: Fri Mar 31, 2023 8:32 am
by YoabOGTL
Hello,
Still no solution?

Re: Upgrade to .net 7 breaks reporting

Posted: Fri Mar 31, 2023 8:35 am
by Max Shamanov
Hello,

We are still working on the problem.
We will let you know when the solution is available.

Thank you.

Re: Upgrade to .net 7 breaks reporting

Posted: Mon Apr 03, 2023 4:20 pm
by YoabOGTL
Hello,
still no solution, this has been over 1 week now

Re: Upgrade to .net 7 breaks reporting

Posted: Mon Apr 03, 2023 8:52 pm
by Lech Kulikowski
Hello,

We are still working on the problem. We will let you know when the solution is available.

Thank you.