0

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

是否有任何activex插件来实现这一点?

4

1 回答 1

2

我使用了 ScriptX。免费版可让您设置一些基本参数,请参见下面的示例。

例子:

<!-- 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>
于 2012-12-11T08:33:38.843 回答