jsreport on my .net core service

  • Hi,
    I'm using jsreport in .net core 2 web API project and I've installed nuget jsreport packages (jsreport.AspNetCore, jsreport.Binary, jsreport.Local). Also below is the my code sample and planning to host this on Azure,

    services.AddJsReport(new LocalReporting().UseBinary(JsReportBinary.GetBinary()).AsUtility().Create());

    //In the controller
    var report = await _jsReportMVCService.RenderAsync(new RenderRequest()
    Template = new Template
    Content = htmlStr,
    Engine = Engine.None,
    Recipe = Recipe.PhantomPdf,
    Phantom = new Phantom() { Orientation = PhantomOrientation.Landscape }

    All I want to know is, what is it meant by max 5 templates? Is that something that I can only generate 5 PDF docs using this library? Please enlighten me on this I'm new to this jsreport thing.

  • You can read about stored templates here

    You are free to go If you use asp.net core and just convert razor views to the pdf using jsreport because in this case you store no templates inside jsreport.

  • Thanks Jan_blaha :)

Log in to reply

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