Report Viewer Js Print is blank

Stimulsoft Reports.JS discussion
Post Reply
User avatar
noob
Posts: 29
Joined: Sat Feb 05, 2022 9:03 am
Location: Iraq, Erbil

Report Viewer Js Print is blank

Post 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>
Last edited by noob on Mon Jul 03, 2023 10:49 am, edited 1 time in total.
Lech Kulikowski
Posts: 6271
Joined: Tue Mar 20, 2018 5:34 am

Re: Report Viewer Js Print is blank

Post by Lech Kulikowski »

Hello,

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

Thank you.
User avatar
noob
Posts: 29
Joined: Sat Feb 05, 2022 9:03 am
Location: Iraq, Erbil

Re: Report Viewer Js Print is blank

Post 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
Lech Kulikowski
Posts: 6271
Joined: Tue Mar 20, 2018 5:34 am

Re: Report Viewer Js Print is blank

Post by Lech Kulikowski »

Hello NoobMaster,

Thank you for the information.
Post Reply