Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Join us to spark ideas for how to put the latest capabilities into action. Register here!
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Can Nprinting is possible in Qliksense2.2?

Hi,

Can nprinting is possible in Qlik sense?

If possible can anyone help me to guide how to achieve this?

Thanks

Tanushree Roy

14 Replies
simondachstr
Specialist III
Specialist III

Nice example! One additional thing I can add is one should consider testing the resolution & zoom-level to increase the quality of the screenshot.

undergrinder
Specialist II
Specialist II

Thank you,

It will be added, as soon as I have time.

G.

undergrinder
Specialist II
Specialist II

Hi Martin,

The resize option was added.

screenshooter.js

GitHub - undergrinder/PhantomJS: PhantomJS codes

G.

Not applicable
Author

Hi Martin. I´ve got working code for screening bud i´m stucked at logging into qlik sense server. Do you have any tips?

var page = require('webpage').create();

page.open("qlik sense server sheet name ", function(status) {

  if (status === "success") {

    page.onConsoleMessage = function(msg, lineNum, sourceId) {

      console.log('CONSOLE: ' + msg + ' (from line #' + lineNum + ' in "' + sourceId + '")');

    };

    page.evaluate(function() {

      console.log('hello');

      document.getElementById("username").value = "username";

      document.getElementById("password").value = "password";

      document.getElementById("u_0_1").click();

      // page is redirecting.

    });

    setTimeout(function() {

      page.evaluate(function() {

        console.log('pokus');

      });

      page.render("printscreen.png");

      phantom.exit();

    }, 5000);

  }

});

simondachstr
Specialist III
Specialist III

Try logging in using authentication headers instead:

page.settings.userName = 'username'

page.settings.password = 'password'