Printing 用于web打印的Activex控件

Printing 用于web打印的Activex控件,printing,activex,Printing,Activex,我想找到一个Internet Explorer ActiveX控件,它允许我在没有对话框的情况下将网页或网页的一部分打印到特定的打印机上 有没有activex插件可以实现这一点?我用过。免费版本允许您设置一些基本参数,请参见下面的示例 例如: <!-- MeadCo ScriptX --> <object id=factory style="display:none" classid="clsid:1663ed61-23eb-11d2-b92f-008048fdd814"

我想找到一个Internet Explorer ActiveX控件,它允许我在没有对话框的情况下将网页或网页的一部分打印到特定的打印机上

有没有activex插件可以实现这一点?

我用过。免费版本允许您设置一些基本参数,请参见下面的示例

例如:

<!-- MeadCo ScriptX -->
<object id=factory style="display:none"
  classid="clsid:1663ed61-23eb-11d2-b92f-008048fdd814"
  codebase="http://[your path here]/smsx.cab#Version=7.0.0.8 ">
</object>


<script>
  function printWindow() {
    factory.printing.header = "This is MeadCo";
    factory.printing.footer = "Printing by ScriptX";
    factory.printing.portrait = false;
    factory.printing.leftMargin = 1.0;
    factory.printing.topMargin = 1.0;
    factory.printing.rightMargin = 1.0;
    factory.printing.bottomMargin = 1.0;
    factory.printing.Print(false);
  }
</script>

函数printWindow(){
factory.printing.header=“这是MeadCo”;
factory.printing.footer=“通过ScriptX打印”;
factory.printing.portrait=假;
factory.printing.leftMargin=1.0;
factory.printing.topMargin=1.0;
factory.printing.rightMargin=1.0;
factory.printing.bottomMargin=1.0;
工厂。印刷。印刷(假);
}

直接询问如何在没有对话框的情况下打印页面不是更好吗?为什么将解决方案仅限于ActiveX?如果有人有ActiveX的答案,那很好,但其他答案也可以。