How do I prevent the print dialog from appearing whenever the user loads a PDF

Discussion in '.NET' started by christopherbouy, Aug 1, 2007.

  1. christopherbouy

    christopherbouy

    Joined:
    Aug 1, 2007
    Messages:
    1
    How do I prevent the print dialog from appearing whenever the user loads a PDF

    Code:
    System.Text.StringBuilder clientScript=new System.Text.StringBuilder();
    clientScript.Append("<script language='javascript'>");
    string arg="";
    string opt="help:no;unadorned:yes;status:no;resizable:yes;
    dialogWidth:"+width.ToString()+"px;dialogHeight:"+height.ToString()+"px;
    center:Yes;";
    clientScript.Append("window.showModalDialog('" + pagePath + "','" + arg + "','" + opt + "');" ) ;
     
    christopherbouy, Aug 1, 2007
    #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. =?Utf-8?B?VmFkaW0=?=
    Replies:
    1
    Views:
    394
    =?Utf-8?B?VmFkaW0=?=
    Jan 20, 2005
  2. keto
    Replies:
    0
    Views:
    1,056
  3. Lew
    Replies:
    0
    Views:
    651
  4. whyyyy
    Replies:
    3
    Views:
    216
  5. Matt
    Replies:
    1
    Views:
    307
    Randy Webb
    Nov 20, 2004
Loading...

Share This Page