How to open report Directly asp core ?



  • hi
    please i try to use jsreport in my .net core app - i do every thing but each time i must download file to preview it

            [MiddlewareFilter(typeof(JsReportPipeline))]
            public IActionResult Invoice()
            {
                HttpContext.JsReportFeature()
                    .DebugLogsToResponse()
                    .Engine(Engine.None)
                    .Recipe(Recipe.ChromePdf);
                return View();
            }
    

    so any way to open it direct after generate ?



  • Check the response content disposition header.
    jsreport by default response with inline content disposition.
    If the browser supports the pdf preview by default it usually display the preview.


Log in to reply
 

Looks like your connection to jsreport forum was lost, please wait while we try to reconnect.