Kumar,
Add this in the head portion of the web page:
<script language="javascript">
function Clickheretoprint()
{
var disp_setting="toolbar=yes,location=no,directories= yes,menubar=yes,";
disp_setting+="scrollbars=no,width=1000, height=600, left=10, top=10";
var content_value = document.getElementById("print_content").innerHTML ;
var docprint=window.open("","",disp_setting);
docprint.document.open();
docprint.document.write('<html><head><title>About Aaron</title>');
docprint.document.write('</head><body align="left" onLoad="self.print()"><center>');
docprint.document.write(content_value);
docprint.document.write('</center></body></html>');
docprint.document.close();
docprint.focus();
}
</script>
Then prechance that area that you want the option to print then
at
<td rowspan=2 id=print_content> BLah blab blah <td>
Add the link to print where you want it:
<a href="javascript
:Clickheretoprint()">Print this area</a>
Hope this helps you out
Aaron
"kumar" <ku***@msn.com> wrote in message news:59**********************************@msnews.m icrosoft.com...
Hello every one,
Can any one help me how can i print values of my webpage with just a button in the webpage.
From http://www.developmentnow.com/g/8_0_...ork-aspnet.htm
Posted via DevelopmentNow.com Groups
http://www.developmentnow.com