A JSON file can be embedded into the dashboard as a resource, so the template carries its own data.

Add the JSON as a dictionary resource.
var report = Stimulsoft.Report.StiReport.createNewDashboard();

var content = Stimulsoft.System.IO.File.getFile("../dashboard/Demo.json");
var resource = new Stimulsoft.Report.Dictionary.StiResource(
    "DemoName", "DemoAlias", false,
    Stimulsoft.Report.Dictionary.StiResourceType.Json, content);
report.dictionary.resources.add(resource);

designer.report = report;

How it works. The JSON travels inside the dashboard's dictionary, so the template is self-contained and needs no external data request.

By using this website, you agree to the use of cookies for analytics and personalized content. Cookies store useful information on your computer to help us improve efficiency and usability. For more information, please read the privacy policy and cookie policy.