I am embedding report designer and in my C# api server app I have created a ReportingAPIController based on some samples out there but the code will not compile. My project is set to .NET 7 and below is an example method in the controller. The return value of
ReportDesignerHelper.ProcessDesigner is "HttpPostedFile" and the compiler is telling me "Reference to type 'HttpPostedFile' claims it is defined in 'System.Web', but it could not be found.
Researching it seems like it might be an issue with the .net version but I am wondering if there is a solution or work-around or maybe a newer version of the BoldReports libraries?
public object PostDesignerAction([FromBody] Dictionary<string, object> jsonResult)
{
return ReportDesignerHelper.ProcessDesigner(jsonResult, this, null, _cache);
}