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 strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

another print issue

Status
Not open for further replies.

IonCurici

Programmer
Oct 29, 2002
24
MD
<body onafterprint=&quot;self.close()&quot;>

-- this doesn't seem to even attempt close the document after it is printed. what can be wrong? i use ie6
 
did you try with &quot;
Code:
<body onafterprint=&quot;window.close()&quot;>
&quot; ?
If that doesn't work, try &quot;
Code:
<body onafterprint='alert(&quot;Printing finished&quot;)'>
&quot; to check if this event occurs or not.

Water is not bad as long as it stays out human body ;-)
 
looks like the event occurs before printing -- the allert comes out before the print dialogue window.

aby ideas?
 
I think this is due to calling time : I explain, when you call the print function (by [CTRL-P] or &quot;print&quot; menu item, or ...), the print dialog is call asynchronously and then your script continues. The delay to load the needed &quot;printing dll&quot; may be the cause of it. Water is not bad as long as it stays out human body ;-)
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top