-
Printing web reports
I would have a web report generated from asp. I would like the report to be printed with a header and a footer on each page when the user prints a hard copy.
How could I do this? Are there special tags that I should use, or do I need some sort of control?
-
Use different style sheets for printing
Code:
<html>
<head>
<LINK media=screen href="style.css" type=text/css rel=stylesheet>
<LINK media=print href="print.css" type=text/css rel=stylesheet>
</head>
<body>
<div class="printOnly">
HEADER TEXT
</div>
Text to be displayed
<div class="printOnly">
FOOTER TEXT
</div>
</body>
</html>
in style.css:
Code:
.printOnly{
DISPLAY: none
}
Hope this helps