0

Hi friends..............
I have a page in which all details of user displays. I want that when user click on button"Print ICard" then ICard is printed and this printed Icard have size of what I desire instead of full page and I also need "Thank You" message on print out which is not displayed in web page....
I don't have much knowledge of css and php. So, please give the full code of it.............
Plzzzzzzzzz help............
Anyone????????????
thanks in advance......................

Plzzzzzzzzzzzz

2
Contributors
2
Replies
3
Views
6 Years
Discussion Span
Last Post by ankit.pandey3
0

Check this page, if it helps you.
If you dont want to show button on print then call printpage function on body tag onload.

<html>

<head>
 <title>New Page 1</title>
<script language="javascript">
 function printpage()
  {
   window.print();
  }
</script>
</head>

<body>

<form>
 <input type="button" value="Print" onclick="printpage();">
</form>
</body>

</html>
0

hi frd.........
But this code prints the full screen with button "Print" which is not desirable.I only want to print the output without any URL and buttons.
Have any idea? plz.........

Check this page, if it helps you.
If you dont want to show button on print then call printpage function on body tag onload.

<html>

<head>
 <title>New Page 1</title>
<script language="javascript">
 function printpage()
  {
   window.print();
  }
</script>
</head>

<body>

<form>
 <input type="button" value="Print" onclick="printpage();">
</form>
</body>

</html>
This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.