Saturday, March 9, 2024

Telerik print Div javascirpt client side

 var content = $get("contentHolder").innerHTML;

var pwin = window.open('', 'print_content', 'width=300,height=300');

pwin.document.open();

pwin.document.write('<html><body onload="window.print()">' + content + '</body></html>');

pwin.document.close();

setTimeout(function () { pwin.close(); }, 1000);

No comments:

Post a Comment