Re: How can I open the print dialog

Discussion in 'ASP .Net' started by Vidar Petursson, Jul 5, 2003.

  1. Hi

    http://msdn.microsoft.com/library/d...uthor/dhtml/reference/events/onafterprint.asp

    You can also use CSS to state what should be printed
    http://msdn.microsoft.com/library/d...author/dhtml/reference/properties/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
    >
    >
    >
     
    Vidar Petursson, Jul 5, 2003
    #1
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. David Waz...

    Re: How can I open the print dialog

    David Waz..., Jul 5, 2003, in forum: ASP .Net
    Replies:
    0
    Views:
    413
    David Waz...
    Jul 5, 2003
  2. mzo
    Replies:
    0
    Views:
    487
  3. Tamer Ibrahim
    Replies:
    3
    Views:
    429
    Alexey Smirnov
    Jan 29, 2007
  4. keto
    Replies:
    0
    Views:
    980
  5. Matt
    Replies:
    1
    Views:
    282
    Randy Webb
    Nov 20, 2004
Loading...

Share This Page