//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 Answers
Know the answer? Post it. Somebody with the same question will find it here.

Krishna Rajput SinghRank #605 · 4K reputationPosted Aug 10, 2017, 11:51 PM EDT
Laxmidhar SahooRank #383 · 6.6K reputationPosted Oct 30, 2018, 6:41 PM EDT