How do you select your recipe in .net local configuration?
I start jsReport like this:
var directory = Path.Combine(AppContext.BaseDirectory, "jsreport"); var dir = AppContext.BaseDirectory; var rs = new LocalReporting(). RunInDirectory(directory). Configure(cfg => cfg.AllowLocalFilesAccess().FileSystemStore().BaseUrlAsWorkingDirectory()); if (RuntimeInformation.IsOSPlatform(OSPlatform.Windows)) rs.UseBinary(jsreport.Binary.JsReportBinary.GetBinary()); else rs.UseBinary(jsreport.Binary.Linux.JsReportBinary.GetBinary()); // var service = rs.AsWebServer().RedirectOutputToConsole().Create(); await service.StartAsync();
How can I configure phatom-pdf as described here? https://jsreport.net/learn/phantom-pdf
Starting jsreport like this results in almost the same jsreport server instance as using the standalone full version.
This means you can open studio in the browser and select the recipe there.
See the basic workflow in the get started tutorial.
ok got that. I wanted to see phantom-pdf settings because I have a strage behavior.
In different developing environments (some windows machines, one linux, with different node versions) we have different pdf renders.
How is that possible? I have read differences between windows and linux. But in two windows OS with different node?
Is should be consistent on different windows machines. The node is anyway compiled in the
jsreport.Localso it cannot have an impact.