//head
function RPrint()
{
var prtContent = document.getElementById('<%= PORPT.ClientID %>');
prtContent.border = 0; //set no border here
var WinPrint = window.open('','','left=100,top=100,width=1000,height=1000,toolbar=0,scrollbars=1,status=0,resizable=1');
WinPrint.document.write(prtContent.outerHTML);
WinPrint.document.close();
WinPrint.focus();
WinPrint.print();
WinPrint.close();
}
//in body (gridview id = PORPT)
2 Replies
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
Laxmidhar SahooPosted Oct 30, 2018, 10:41 PM
Krishna Rajput SinghPosted Aug 11, 2017, 3:51 AM