Page 1 of 1

Report Viewer Js Print is blank

Posted: Tue Jun 27, 2023 9:45 pm
by noob
Hi,

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>

Re: Report Viewer Js Print is blank

Posted: Thu Jun 29, 2023 9:32 am
by Lech Kulikowski
Hello,

Please send us a sample project that reproduces the issue for analysis.

Thank you.

Re: Report Viewer Js Print is blank

Posted: Sat Jul 01, 2023 6:50 am
by noob
Hi Lech,

i recreated a sample with a new empty project but all works fine, it seems its my current environment problem that affects the Viewer, i will look more into it, Thanks.

Regards
NoobMaster

Re: Report Viewer Js Print is blank

Posted: Mon Jul 03, 2023 5:59 am
by Lech Kulikowski
Hello NoobMaster,

Thank you for the information.