javascript - How to print directly in IE 11 with ActiveX -


on page show pdf document in iframe , try print directly. @ end of search, situation suitable ie 11 reason security etc. how can that? don't know. please save me situation :/

i use these dom element , function

<button type="button" onclick="printdoc()" class="btn success">print it</button>  <script type="text/javascript">                           function printdoc() {                            $(document).ready(function () {                          document.getelementbyid("mydiv").contentwindow.print({                                     bui: false, bsilent: true,                                     bshrinktofit: true                                 });                            });                        }; </script> 

activex control not work on ie11 microsoft no longer allows activex plugins run in browser space.however if having 54 bit operating system can try forcing ie run in 32-bit mode adding registry key given below -

change registry entry here:

hkey_current_user\software\microsoft\internet explorer\main\tabprocgrowth or hkey_local_machine\software\microsoft\internet explorer\main\tabprocgrowth

set greater 0 , restart ie11


Comments

Popular posts from this blog

python - How to insert QWidgets in the middle of a Layout? -

python - serve multiple gunicorn django instances under nginx ubuntu -

module - Prestashop displayPaymentReturn hook url -