Telerik.Web.UI.Editor.CommandList["Print"] = function (commandName, editor, args) {
var prtContent = editor.get_contentArea();
var WinPrint = window.open('', '', 'left=0,top=0,width=800,height=900,toolbar=0,scrollbars=0,status=0');
WinPrint.document.write(prtContent.innerHTML);
WinPrint.document.close();
WinPrint.focus();
WinPrint.print();
setTimeout(function () {
WinPrint.close();
}, 1000);
};
No comments:
Post a Comment