IE directly prints the page
1. Configure direct printing and printing by loading the adobe pdf reader plug-in IE (recommended) <body> <object id = "pdf1" width = "1000px" height = "400px" classid = "clsid: CA8A9780-280D-11CF-A24D-444553540000"> <param name = "src" value = ".. /xdoc/testDoc. do "> </object> <script language =" JavaScript "> using 1.setshowtoolbar (false ); </script> <input type = "button" value = "print" onclick = "Release 1.printall ()"> <input type = "button" value = "Print (with dialog box) "onclick =" 00001.printwit HDialog () "> </body> 2. Use smsx. <object id = "factory" style = "display: none" classid = "clsid: 1663ed61-23eb-11d2-b92f-008048fdd814" codebase = "smsx. cab # Version = 6, 3, 435,20 "> </object> <script type =" text/JavaScript "> function setting () {if (! Factory. object) {alert ("the print control is not correctly installed! "); Return;} else {factory. printing. header = ""; // header factory. printing. footer = ""; // footer factory. printing. leftMargin = 1.0; // left from factory. printing. topMargin = 1.3; // top margin factory. printing. rightMargin = 1.0; // The right side is from factory. printing. bottomMargin = 1.3; // bottom margin factory. printing. portrait = true; // print direction; true: portrait. false: Landscape }}</script>