I try to print pdf file in javaScript. I get the file's url from the server.
var iframe = document.createElement('iframe');
document.body.appendChild(iframe);
iframe.style.display = 'none';
iframe.src = urlBaseImage + 'Report//' + result;
iframe.focus();
iframe.contentWindow.print();
But he give me empty page, I checked the url and it is really correct. What Can I do? Thanks!