hello friends i am using javascript to print the entire content of the page.
but the problem i am getting while preinting is that i can get only text and the background imge of my content page is not printing...
my code is here......
WebPage1.html:
-------------------
<html>
<head>
function openPage()
{
window.open("WebPage2.html",'wdwCoupon','left=350,top=300,width=460,height=394,toolbar=0,resizable=0,scrollbars=0');
}
</head>
<body>
<input name="OpenPage" type="button" value="To Open the WebPage2" onclick="openPage()" />
</body>
</html>
WebPage2.html:
-------------------
<html>
<head>
<script type="text/javascript" language="javascript">
function refreshCheck()
{
window.location.reload();
}
</script>
</head>
<body style="background-repeat:no-repeat" background="images/gift-coupon.gif" onload="refreshCheck()" >
<form id="form1" runat="server">
<div align="right">
<input name="print" type="button" value="Print" style="background-color:blue;color:White;font-family:Arial" onclick="javascript:window.print()" />
<table border="0" style="width:450px;height:330px" cellpadding="0">
<tr>
<td colspan="2" style="text-align:right"> this content for printing purpose</td>
</tr>
</table>
</div>
</form>
</body>
</html>
please do reply me as soon as possible.
thank you