Re: Ptinter dialogue from serverside

  •  04-19-2010, 1:47 PM

    Re: Ptinter dialogue from serverside

    Hello,
    Thanks for responding.  Here is teh code I used on the server side(code behind) to open up the print dialogue and it does not open it:
     
                         StringBuilder sb = new StringBuilder();
                        sb.Append("<script language='javascript'>");
                          sb.Append(" var editor1 = document.getElementById('" + Editor1.ClientID + "');");
                  
                       sb.Append(" editor1.ExecCommand('Print',false,'Print');");
                        sb.Append("</script>");
                          Page.RegisterStartupScript("zoom", sb.ToString());
     
    Can you please try it and let me know.
    Thanks a lot
View Complete Thread