!--NEWSZW_HZH_BEGIN--
html加以下代码
<div>
<div id="to_print"></div>
<input type="button" id="print_button" value="Print" onclick="document.getElementById("FILEtoPrint").focus(); document.getElementById("FILEtoPrint").contentWindow.print();" />
</div>
<script>
function printSome(path){ //传入文件路径
$("#to_print").html("<iframe src="+path+" id="FILEtoPrint"></iframe>");
setTimeout(function(){$("#print_button").click();}, 500);
}
</script>
<div>
<div id="