This code works on .net product :
Code: Select all
StiReport report = new StiReport();
report.Load(path);
report.Compile();
report["param_1"] = 33;
report.Render();
How can i do that on js product ? I did not find in the documentation.
Code: Select all
StiReport report = new StiReport();
report.Load(path);
report.Compile();
report["param_1"] = 33;
report.Render();
Code: Select all
// Create the report viewer with default options
var viewer = new Stimulsoft.Viewer.StiViewer(null, "StiViewer", false);
// Create a new report instance
var report = new Stimulsoft.Report.StiReport();
// Load report from url
report.loadFile("../reports/listadoPrueba.mrt");
report.dictionary.variables.getByName("param_1").valueObject = "your value";
// Assign report to the viewer, the report will be built automatically after rendering the viewer
viewer.report = report;