官方网站说的说明 A basic subset of ScriptX printing functionality -- header & footer settings, ========================== printed orientation, coarse control of margins and a browser window/frame printing ==================== command -- is available at no charge, and is freely distributable. Advanced printing ======================================================= functionality is not free. ScriptX-enabled documents need to refer to a valid publishing license in order for advanced printing to work.现在我只要求控制方向啊,这个应该是免费的额 多少版本一下算是basic版本啊??
A basic subset of ScriptX printing functionality -- header & footer settings,
==========================
printed orientation, coarse control of margins and a browser window/frame printing
====================
command -- is available at no charge, and is freely distributable. Advanced printing
=======================================================
functionality is not free. ScriptX-enabled documents need to refer to a valid publishing license in order for advanced printing to work.现在我只要求控制方向啊,这个应该是免费的额
多少版本一下算是basic版本啊??
我刚才装的,一切ok
factory.printing.header=""
factoryr.printing.footer=""
factory.printing.portrait=false //纸的方向 横向
factory.printing.leftMargin =0
factory.printing.topMargin =0
factory.printing.rightMargin=0
factory.printing.bottomMargin=0
=================================
这些属性能用么??安装我也没有问题啊
但是使用出错,不是报 无效的许可证就是报没有正确安装
唉
但是 factory.printing.portrait=false;语句不起作用啊
<object id=factory style="display:none"
classid="clsid:1663ed61-23eb-11d2-b92f-008048fdd814" codebase="./libs/smsx.cab#Version=6,3,434,26">
</object>
我在家里html+js用该控件就没有什么问题(xpsp2)
到公司死活不行啊(win2000sp4)
没有想法了
// -- advanced features
factory.printing.Printer = "Acrobat Distiller";
factory.printing.collate = true;
factory.printing.Print(true);
}
function Print(frame) {
factory.printing.Print(true, frame) // print with prompt
}
</script>
<body >
<object id="factory" viewastext style="display:none"
classid="clsid:1663ed61-23eb-11d2-b92f-008048fdd814"
codebase="http://weck/smsx.cab#Version=6,3,435,20">
</object>就這麼多代碼,我安裝scriptx時,記事本的內容如下:<object id="factory" viewastext style="display:none"
classid="clsid:1663ed61-23eb-11d2-b92f-008048fdd814"
codebase="http://[your-path]/smsx.cab#Version=6,3,435,20">
</object>
我運行的錯誤提示,“沒有許可證”,我也不知道該怎麼寫<object>中[your-path]的內容了。是不是因為這個[your-path]我沒有寫正確的問題呀。
反正我用网络打印机,这个控件不起作用,所以没有用,本地打印机就没有问题
your-path?
高级功能要许可证的
只有基本功能才是免费的,不需要许可证,另外路径 你先下载下来,然后自己指定吧
"Compatibility Flags"=dword:00000000把上面内容复制到记事本保存为.reg格式 直接导入就可以了!
经过小范围测试IE5到IE8都是可以的。
Windows Registry Editor Version 5.00 [HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Internet Explorer\ActiveX Compatibility\{1663ed61-23eb-11d2-b92f-008048fdd814}]
"Compatibility Flags"=dword:00000000 把上面内容复制到记事本保存为.reg格式 直接导入就可以了 !!!