We have a .NET Core Web API project. Our TRDP and TRDX files are located in wwwroot/reports/.
At design time in the Standalone Designer, the reports preview as expected with the correct data.
That SAME report file at runtime does not request the data, the data method is not invoked.
The below method takes the report, processes it, but the data method never gets called by the report processor.
I've look at the TRDX file and the assembly name, method and parameter is in the correctly.
What could possibly cause this? The controller has access to the data source assembly and can execute the methods, but the report processor method that is in the same controller, does not invoke the data method.
Thank you in advance,
Karl
private HttpResponseMessage MakePdfResult(ReportSource report)
{
var rp = new ReportProcessor();
var pdf = rp.RenderReport("PDF", report, null);
var result = new HttpResponseMessage { Content = new ByteArrayContent(pdf.DocumentBytes) };
result.Content.Headers.ContentType = new MediaTypeHeaderValue("application/pdf");
return result;
}