|
|
|||||||||
|
|||||||||
|
|||||||||
| |
|||
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Display Modes |
|
|
|
Stay one step ahead of the competition. Evaluate and give feedback
on some of the hottest web development tools on the market today.
Make your opinion heard! Click
Here
|
|
#1
|
|||
|
|||
|
Using window.print without printing header and footer
When I do a window.print, I get page number, page title at the top, and the url at the bottom.
I'd like to print without these... only the table which is in my window... how can I do that? I have used css to set up a print style, but, i still get the url and the title with page numbers when printing it. Thank you so much! |
|
#2
|
|||
|
|||
|
That's just impossible in Javascript, I guess (according to the fact that it's a printer option... -outer from the browser-).
An old thread like this (March 26th, 2003 -t3042-) talked about ActiveX Control but, it seems to be avalaible only with IE 4.0 SP1 & upper. Go to developer.irt.org/script/1437.htm and make experiences. |
|
#3
|
|||
|
|||
|
Why does your link not work?
|
|
#4
|
|||
|
|||
|
Using window.print without printing header and footer
Simplest way to do this is by removing Header and Footer in IE's File -> Page Setup dialog box
|
|
#5
|
||||
|
||||
|
Quote:
Personally, I think the fact this isn't possible (it isn't I can tell you) is a Good Thing. If I print something, it usually ends up filed somewhere, and it's handy to be able to find the source of that later on. If you really want to affect the way something is printed, make a PHP page and output the document in PDF.
__________________
This is my code. Is it not nifty? "The biggest problem encountered while trying to design a system that was completely foolproof, was, that people tended to underestimate the ingenuity of complete fools." ---Douglas Adams Join the Itsacon fanclub! Zero Tolerance: Spammers banned so far: 264
![]() |
![]() |
| Viewing: Dev Articles Community Forums > Programming > JavaScript Development > Using window.print without printing header and footer |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|