i have a problem with my Viewer ( print action ), in the viewer all things are good, but when i click on print then the Print dialog is empty, check below images.
when i click on print it makes a GET request to server with NULL action, this is weird !!
The Viewer:
The Print Dialog:
Here is my Viewer JS code:
Code: Select all
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<title></title>
<script src="/Assets/Stimulsoft/stimulsoft.reports.js" type="text/javascript"></script>
<script src="/Assets/Stimulsoft/stimulsoft.dashboards.js" type="text/javascript"></script>
<script src="/Assets/Stimulsoft/stimulsoft.viewer.js" type="text/javascript"></script>
<script type="text/javascript">
StiOptions.WebServer.url = "/DataAdapters";
var data = '@(Html.Raw(System.Web.HttpUtility.JavaScriptStringEncode(Model)))';
var options = new Stimulsoft.Viewer.StiViewerOptions();
options.appearance.theme = Stimulsoft.Viewer.StiViewerTheme.Office2022WhiteBlue;
options.appearance.scrollbarsMode = true;
options.appearance.fullScreenMode = true;
var report = new Stimulsoft.Report.StiReport();
report.load(data);
var viewer = new Stimulsoft.Viewer.StiViewer(options, "StiViewer", false);
viewer.report = report;
</script>
</head>
<body>
<div>
<script type="text/javascript">
viewer.renderHtml();
</script>
</div>
</body>
</html>