Error when using window.print() method if window has been closed

  • Thread starter Thread starter Miles
  • Start date Start date
M

Miles

When using window.print with Internet Explorer it takes a
while for the Print dialog to appear. If the window is
closed in this time the following error dialog appears:

Internet Explorer Script Error
Line 228
Char 1
Error 'dialogArguments.__IE_PrintType' is null or not an
object
Code 0
URL res://C:\WINDOWS\System32\shdoclc.dll/preview.dlg
 
I downloaded BHOCaptor and the only Help Objects are ones
that I know about.

I thought it must be more an IE bug than anything. It
seems to me that if the window is closed before the print
dialog appears then it doesn't know which window to print
and therefore throws an error.
 
Back
Top