Start jsreport.exe as a webserver
-
I want to generate pdf from Razor view. Instead of using jsreport AsUtility i am trying to use AsWebServer
In Startup.cs
var rs = new LocalReporting().UseBinary(JsReportBinary.GetBinary()).AsWebServer().Create();
services.AddJsReport(rs);
This is not working and throws the following error
LocalWebServerReportingService not yet started. Call Start() first.Is there anything that i am missing here?
-
The error message tells you what to do.
See the docs
https://jsreport.net/learn/dotnet-local#utility-or-web-server