How to export production jsreports and deploy to a local instance.



  • Hi,

    Is there a way to export production jsreports(https://sometext.jsreportonline.net/) and run those locally?
    Currently I'm using this code

    var rs = new LocalReporting()
             .UseBinary(JsReportBinary.GetBinary())
             .KillRunningJsReportProcesses()
             .RunInDirectory(Path.Combine(Directory.GetCurrentDirectory(), "jsreport"))
             .Configure(cfg => cfg.CreateSamples()
                .FileSystemStore()
                .BaseUrlAsWorkingDirectory())
             .AsWebServer()
             .RedirectOutputToConsole()
             .Create();
    
                rs.StartAsync().Wait();
    
                Process.Start(new ProcessStartInfo("cmd", $"/c start http://localhost:5488"));
    
                Console.ReadKey();
    
                rs.KillAsync().Wait();
    

    It create samples Invoice,Orders.. and open http://localhost:5488 to run these.
    But I want to export my own production jsreports (https://sometext.jsreportonline.net/) and run those locally.

    Any support on this would be kindly appreciated. Thank you



  • You can login to the jsreport online and click settings/export.
    Then start your local server and click settings/import.



  • Thank you for the quick response


Log in to reply
 

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