Report Created With Standalone Designer Does Not Get Data At Runtime

2 posts, 0 answers
  1. Karl
    Karl avatar
    20 posts
    Member since:
    Aug 2019

    Posted 11 Sep 2019 Link to this post

    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,


     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;

  2. Karl
    Karl avatar
    20 posts
    Member since:
    Aug 2019

    Posted 12 Sep 2019 Link to this post

    Turns out that the RenderReport method is swallowing exceptions and not reporting the same exception that the ReportsController throws when the AssemblyReferences are not correct.

    I added an AssemblyReferences section to the appsettings.json file and it worked.

Back to Top