I'm new in Stimulsoft Reports, and I'm blocked in my first report using javascript + ASP (classic ASP), which don't display data. Only the title is displayed.
I tested and tryed to debug, the problem seems about data sent to the report. I tried during 2 days, and could not find the problem.
This is a sample of my code, with 2 lines of data included :
Code: Select all
<head>
<meta charset="utf-8">
<link href="css/stimulsoft.viewer.office2013.lightgrayblue.css" rel="stylesheet">
<script src="js/licence_reporting.js"></script>
<script src="js/stimulsoft.reports.js" type="text/javascript"></script>
<script src="js/stimulsoft.viewer.js" type="text/javascript"></script>
<script src="reports/report_types_ponts.js"></script>
<script type="text/javascript">
// Zone de visualisation de l'état
let viewer = null;
function Start()
{
// données à imprimer
let donneesEtat = { "types_ponts" : [{ "code" : "BUSE", "libelle" : "Buse" }, { "code" : "BWSTRING", "libelle" : "Bow String" }] } ;
// appel pour initialisation licence
Stimulsoft.Base.StiLicense.key = licenceReporting();
let report = new Stimulsoft.Report.StiReport();
viewer = new Stimulsoft.Viewer.StiViewer(null, "StiViewer", false);
viewer.renderHtml("report");
report.load(reportTypesPonts);
report.dictionary.databases.clear();
report.regData("", "", donneesEtat);
viewer.report = report;
}
</script>
</head>
<body onload="Start()">
<div id="report"></div>
</body>
</html>
- donneesEtat containts the data
- reportTypesPonts is coming from one incldue file ("report_types_ponts.js") and containt the JSON content of the MRT report
- licenceReporting() is a function which returns the licence key
I know that the report is well loaded because the title is displayed correclty, even when I change it. I attach the report file and screenshots of the displayed report
I really need someone to help me please ...
Have a good day.
B.R