?? readme.txt
字號(hào):
網(wǎng)頁(yè)打印控件
內(nèi)容:
1.readme.txt 說(shuō)明文檔
2.printweb.cab 帶數(shù)字簽名的打印控件組件包
3.printweb.exe 無(wú)數(shù)字簽名的打印控件組件安裝包
4.test.htm 例子頁(yè)面
功能:
1.提供打印線條及文字
2.文字大小、長(zhǎng)寬比例、粗細(xì)可調(diào)
3.提供紙張大小、頁(yè)邊距設(shè)置
提醒:
如果要使用帶數(shù)字簽名的組件包,請(qǐng)參照例子頁(yè)面增加ca365數(shù)字證書(shū)安裝代碼
例子(參見(jiàn)test.htm):
<object id="LxPrint" style="display:none" viewastext classid="clsid:9804E00D-F300-4F17-A59C-97B8B9D68AEC" codebase="http://www.yeeair.com/printweb.cab#Version=1,0,0,1"></object>
<script Language="VBScript">
function onclick_Print1()
'打印文檔名
LxPrint.DocName = "打印測(cè)試"
'紙張大小及頁(yè)邊距
'單位為0.01毫米
LxPrint.PaperWidth = 25400
LxPrint.PaperHeight = 10170
LxPrint.TMargin = 1000
LxPrint.BMargin = 1000
LxPrint.LMargin = 1000
LxPrint.RMargin = 1000
'畫(huà)線(坐標(biāo)已減掉頁(yè)邊距)
'參數(shù)1:起始X坐標(biāo) 參數(shù)2:起始Y坐標(biāo)
'參數(shù)3:終止X坐標(biāo) 參數(shù)4:終止Y坐標(biāo)
'參數(shù)5:線寬 參數(shù)6:線型(0實(shí)線 1--- 2.... 3_._._._ 4_.._.._)
LxPrint.DrawLine 0, 0, 5000, 5000, 20, 1
LxPrint.DrawLine 2000, 0, 5000, 2000, 30, 0
'畫(huà)字(坐標(biāo)已減掉頁(yè)邊距)
'參數(shù)1:起始X坐標(biāo) 參數(shù)2:起始Y坐標(biāo)
'參數(shù)3:字體寬 參數(shù)4:字體高 參數(shù)5:字體粗細(xì)(標(biāo)準(zhǔn)為400)
'參數(shù)6:字體 參數(shù)7:打印內(nèi)容
LxPrint.DrawText 1000, 1000, 300, 1000, 400, "宋體", "萬(wàn)軍"
LxPrint.DrawText 2000, 2000, 1000, 500, 400, "宋體", "萬(wàn)軍"
'打印
LxPrint.StartPrint
end function
</script>
?? 快捷鍵說(shuō)明
復(fù)制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號(hào)
Ctrl + =
減小字號(hào)
Ctrl + -