title: How to print directly in IE 11 with ActiveX
body: <p>On the page i show a pdf document in iframe and i try to print it directly. At end of my search, this situation is suitable for IE 11 for the reason security etc. but how can i do that? I don't know. please save me this situation :/ </p>
  
  <p>I use these DOM element and function</p>
  
  <pre><code>&lt;button type="button" onclick="printDoc()" class="btn success"&gt;Print It&lt;/button&gt;
  
  &lt;script type="text/javascript"&gt;  
                          function printDoc() {
                             $(document).ready(function () {
                           document.getElementById("myDiv").contentWindow.print({
                                      bUI: false, bSilent: true,
                                      bShrinkToFit: true
                                  });
                             });
                         };
  &lt;/script&gt;
  </code></pre>