Code: Select all
Uncaught TypeError: Cannot read property 'Localization' of undefined
at e.Viewer.e.Viewer (stimulsoft.viewer.js:9)
at Stimulsoft (stimulsoft.viewer.js:9)
at stimulsoft.viewer.js:9
Code: Select all
$.cachedScript(FilesURL + "/Assets/js/stimulsoft/" + "stimulsoft.reports.js");
$.cachedScript(FilesURL+ "/Assets/js/stimulsoft/" + "stimulsoft.viewer.js");
VM2687:12 Uncaught TypeError: Stimulsoft.Viewer.StiViewer is not a constructor
The code in view is:
Code: Select all
var report = new Stimulsoft.Report.StiReport();
report.loadFile(ServerURL + "/DownloadFile");
var viewer = new Stimulsoft.Viewer.StiViewer(null, "StiViewer", false);
viewer.report = report;
viewer.renderHtml("viewerContent");