解决方案 »

  1.   

        if (result != "") {
            iframeid.document.write(result);
            iframeid.document.execCommand('print');
            window.self.close();
        }
    这个代码改成西面的试试
        if (result != "") {
            var iframeid = document.getElementById('flyso').contentWindow;
            iframeid.document.body.innerHTML = result
            iframeid.print();
        }
      

  2.   


        if (result != "") {
            var iframeid = document.getElementById('flyso').contentWindow;
            iframeid.document.body.innerHTML = result
            iframeid.print();
        }亲,为什么这样写调不出打印机啊?
      

  3.   

    你可以试试<iframe name="flyso" marginheight="0" marginwidth="0" frameborder="0" width="0" height="0"></iframe>window.frames["flyso"].location.href="/Printpreview.aspx"
    window.frames["flyso"].focus();
    window.frames["flyso"].print()
      

  4.   

    选择打印机要安装插件
    http://scriptx.meadroid.com/