试试看,偶的版本是5,60,0,360的:
<BODY>
<object id="factory" style="display:none" viewastext classid="clsid:1663ed61-23eb-11d2-b92f-008048fdd814" codebase="../ScriptX.cab#Version=5,60,0,360"></object>
<table>
<tr>xxxxxxxxxxxxxxxx</tr>
</table>
<INPUT TYPE="button"  name="ss"  value="打印" onclick="Printers()">
<script defer>
function window.onload() {
  factory.printing.header = ""
  factory.printing.footer = ""
  factory.printing.portrait = true
  factory.printing.leftMargin = 0.0
  factory.printing.topMargin = 0.0
  factory.printing.rightMargin = 0.0
  factory.printing.bottomMargin = 0.0
  }
</script>
<SCRIPT LANGUAGE="JavaScript">
function Printers() {
agree = confirm('确定打印吗?');
if (agree) {
factory.printing.Print(true);//打印
//factory.printing.PageSetup();页面设置
//factory.printing.Preview();打印预览 }
else {
//NoPrinter.style.visibility='visible';
}
}
</SCRIPT>
</body>