Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Remove header and footer in html to print page

Is there any way to remove header and footer of a html page, so that if user print it, there is no header and footer.

User can choose to remove it using print setup, but i wondering is there any css or javascript to remove it programatically?

thank you for any response.

like image 427
Ifnu Avatar asked May 17 '10 14:05

Ifnu


2 Answers

I do some googling and everybody said: "Can't remove them!" except using ActiveX and 3rd party plugins.

I wonder why some reporting controls (Telerik Reporting, DevX,...) can hide Header & Footer without using ActiveX or plugins! Are they print the page in another ways? What way?

like image 78
Vinh Avatar answered Oct 02 '22 13:10

Vinh


You seem to be referring to the header and footer lines that the browser is adding and not contents of the printed page. In that case the answer is: No, you can only change it in the settings.

like image 29
RoToRa Avatar answered Oct 02 '22 12:10

RoToRa