Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

IE 7 print preview window event?

Status
Not open for further replies.

techkate

Programmer
Feb 23, 2004
118
US
Currently, I manipulate my page layouts (asp.net) using window.onbeforeprint and window.onafterprint so that pages print as best as possible.

Are there similar events for the new Internet Explorer 7 print preview function? It appears the print preview ignores window.onbeforeprint and window.onafterprint and shows the page before any manipulation.

Because of menus/information bars/etc., the page does not print 'pretty' without intervention.

Thanks in advance for any help.

Kate

[small]Yeah, it's a non-nutritive cereal varnish. It's semi-permeable. It's not osmotic.[/small]
[small]What it does is it coats and seals the flake, prevents the milk from penetrating it."[/small]

 
Using stylesheets set to media="print" you won't need a javascript solution for this at all. Do some searches on CSS print stylesheets for more info.

-kaht

[small](All puppies have now found loving homes, thanks for all who showed interest)[/small]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top