Click here to Skip to main content
14,971,215 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
i used below code for printing......
XML
<script type="text/javascript">

function PrintGridData() {

resizeBy(200,200);

var prtGrid = document.getElementById('<%=GridView1.ClientID %>');

prtGrid.border = 0;

var prtwin = window.open('', 'PrintGridViewData', 'left=1,top=1,width=1000,height=1000,tollbar=0,scrollbars=1,status=0,resizable=2');

prtwin.document.write(prtGrid.outerHTML);

prtwin.document.close();

prtwin.focus();

prtwin.print();

prtwin.close();

}

</script>
Posted

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