<OBJECT ID="WB" WIDTH="0" HEIGHT="0" CLASSID="clsid:8856F961-340A-11D0-A96B-00C04FD705A2"></OBJECT>
<SCRIPT LANGUAGE="VBScript">
Sub window_onunload
On Error Resume Next
Set WB = nothing
End Sub
Sub vbPrintPage ( x , y , z )
OLECMDID_PRINT = 6
OLECMDEXECOPT_DODEFAULT = 0
OLECMDEXECOPT_PROMPTUSER = 1
OLECMDEXECOPT_DONTPROMPTUSER = 2
On Error Resume Next
WB.ExecWB x, y, z, 0
End Sub
</SCRIPT>
<img src="img/submit2.gif" width="61" height="20" ONCLICK="vbPrintPage 6, 2, 3" class="noprint" onchange="javascript:submit()" border="0">这个是我的打印代码?可是现在公司打印机好几台,所以要求用代码实现指定打印机打印?
[
本帖最后由 zdloveday 于 2012-7-25 15:33 编辑 ]