Ошибка в firefox.
Код: Выделить всё
You cannot load a report with dashboards.
stimulsoft.reports.js:45:102729
TypeError: t.pages.getByIndex(...) is undefined
[Подробнее]
stimulsoft.viewer.js:11:131047
Q</Q.prototype.renderHtml/this.jsObject.assignReport/<
http://localhost:3000/assets/stimulsoft/stimulsoft.viewer.js:11:131047
Q</Q.prototype.invokeLoadDocument/<
http://localhost:3000/assets/stimulsoft/stimulsoft.viewer.js:11:154321
unreachable code after return statement
[Подробнее]
stimulsoft.reports.js:8:133817
Код: Выделить всё
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<link rel="stylesheet" href="%PUBLIC_URL%/assets/stimulsoft/stimulsoft.viewer.office2013.whiteblue.css">
<script src="%PUBLIC_URL%/assets/stimulsoft/stimulsoft.reports.js"></script>
<script src="%PUBLIC_URL%/assets/stimulsoft/stimulsoft.viewer.js"></script>
<title>Document</title>
</head>
<body>
<div id="root"></div>
</body>
</html>
Код: Выделить всё
componentDidMount(){
//console.log('Loading Viewer view');
// console.log('Creating the report viewer with default options');
const viewer = new window.Stimulsoft.Viewer.StiViewer(null, 'StiViewer', false);
// console.log('Creating a new report instance');
const report = new window.Stimulsoft.Report.StiReport();
//console.log('Load report from url');
report.loadFile(this.props.reportUrl);
//console.log('Assigning report to the viewer, the report will be built automatically after rendering the viewer');
viewer.report = report;
//console.log('Rendering the viewer to selected element');
viewer.renderHtml('viewer');
}
В чём проблема? Спасибо.