Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
Hi,
Can nprinting is possible in Qlik sense?
If possible can anyone help me to guide how to achieve this?
Thanks
Tanushree Roy
Nice example! One additional thing I can add is one should consider testing the resolution & zoom-level to increase the quality of the screenshot.
Thank you,
It will be added, as soon as I have time.
G.
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);
}
});
Try logging in using authentication headers instead:
page.settings.userName = 'username'
page.settings.password = 'password'