Click here to Skip to main content
15,886,634 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
I created Multiview in my ASPX page. It has 8 areas now I have tried with one java script and it is printing only 1 area. Kindly let me know to take a full screen print of 8 areas in one click.

Jquery Used :

What I have tried:



function PrintPanel() {
var panel = document.getElementById("<%=tbl1.ClientID %>");
var printWindow = window.open('', '', 'height=400,width=800');
printWindow.document.write('<html><head><title>DIV Contents</title>');
printWindow.document.write('</head><body >');
printWindow.document.write(panel.innerHTML);
printWindow.document.write('</body></html>');
printWindow.document.close();
setTimeout(function () {
printWindow.print();
}, 500);
return false;
}
Posted
Updated 3-Dec-21 0:06am

1 solution

A MultiView control[^] only renders the active view. None of the other views will be available from Javascript.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900