- Joined
- Aug 1, 2007
- Messages
- 1
- Reaction score
- 0
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 + "');" ) ;
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 + "');" ) ;