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

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 + "');" ) ;
 

Ask a Question

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

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,995
Messages
2,570,230
Members
46,818
Latest member
Brigette36

Latest Threads

Top