View Full Version : Printing pages with ASP

05-04-2007, 06:19 PM
Hi All,

I have some ASP pages and I want to put a Print link to the page. My problem is Internet Explorer's Print margins. Is there a way of arranging the page margins automatically with the code? And is it possible not to show the print button on the printed page?


05-04-2007, 07:43 PM
Print margins are browser settings, Javascript or any scripting language has no access to it.

But to hide certain elements when the page is printed is possible using CSS (http://www.javascriptkit.com/dhtmltutors/cssmedia.shtml).