Hi
http://msdn.microsoft.com/library/de...afterprint.asp
You can also use CSS to state what should be printed
http://msdn.microsoft.com/library/de...es/media_1.asp
--
Best Regards
Vidar Petursson
==============================
Microsoft Internet Client & Controls MVP
==============================
"Mike John" <> wrote in message
news:0a0f01c34271$3e395bf0$...
> I want to open print dialog in modual mode ,so the next
> line of code will not execute until the print dialog
> window is close.
>
> I have used the following systax in vb,js:
>
> document.window.print()
> alert("Done print")
>
> Yes, the print dialog window opens, but the second line of
> code got executed, even thou the print dialog window is
> still open
>
> The reason of why I want to do that, is because I want
> hide some controls before printing then appearing them
> again after the print dialog window is close
>
> Sincerly yours
>
>
> Mike John
>
>
>