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.

Используя этот сайт, вы соглашаетесь на использование файлов Cookie для аналитики и персонализированного контента. Файлы Cookie хранят полезную информацию на вашем компьютере, чтобы помочь нам повысить эффективность и удобство использования. Для получения дополнительной информации, пожалуйста, прочтите Конфиденциальность и Использование Cookie.