Multiple report rendering at same time
-
I'm trying to test using jsreport for our Saas application to replace our current reporting system , and i'm having two issues
1 - Poor performance.
2 - I cannot execute multiple rendering at same time getting this error.
An error has occurred when trying to initialize jsreport, seems like there is already a server running in port: 5488 (2). listen EADDRINUSE :::5488
Here is the code :
var rs = new LocalReporting() .Configure(cfg => cfg.FileSystemStore()) .UseBinary(JsReportBinary.GetBinary()) .AsUtility() .Create(); var report = await rs.RenderByNameAsync("REPORT-NAME", myData);
-
-
Do you get better performance when starting jsreport LocalReporting as web server? https://jsreport.net/learn/dotnet-local#utility-or-web-server
-
You should not initialize jsreport multiple times. Do it just once in the application init.
If you run a complex scenario you could also consider running jsreport as standalone server and communicate with it from your .net app using jsreport.Client instead of using jsreport.Local.
-