I am working on a Web Project in Asp.net with crystal reports.
I am trying to print crystal report using javascript. Everything is fine but when there is multiple pages in crystal report it's not printing all pages. Printing only single Page.
Here is my javascript code
JavaScript
function Print() { var dvReport = document.getElementById("dvReport"); var frame1 = dvReport.getElementsByTagName("iframe")[0]; if (navigator.appName.indexOf("Internet Explorer") != -1 || navigator.appVersion.indexOf("Trident") != -1) { frame1.name = frame1.id; window.frames[frame1.id].focus(); window.frames[frame1.id].print(); } else { var frameDoc = frame1.contentWindow ? frame1.contentWindow : frame1.contentDocument.document ? frame1.contentDocument.document : frame1.contentDocument; frameDoc.print(); } return false; }
Manas MohapatraRank #182 · 13.2K reputationPosted Sep 26, 2015, 5:11 AM EDT
Shaiwal Tripathi110 reputationPosted Sep 26, 2015, 5:38 AM EDT
Thanks for your reply, but still the same problem. It's printing the single page :(