put the javascript on the header Part
<script type="text/javascript" language="javascript">
function callprinter(p) {
var k = document.getElementById(p);
var wp = window.open('', '', 'left=1000,top=1000,width=800,height=1280,toolbar=0,scrollbars=0,status=0');
wp.document.write(k.innerHTML);
wp.document.close();
wp.print();
}
</script>
put the code in Body part
<div id="print11" style="width: 100%; border: 2px solid #ccc; background-color: #fff">
if you selected section on design hear in this div
</div>
Button On Click To Print
<asp:Button ID="lnkprint" runat="server" Text="Print" Width="100px"
OnClientClick="javascript:callprinter('print11');" />
23:50
|
Category:
|
0
comments
Comments ( 0 )