Regarding Print option in Dotnet

A

Aaron

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,770
Messages
2,569,583
Members
45,074
Latest member
StanleyFra

Latest Threads

Top