在<head>...</head>加入: <SCRIPT LANGUAGE=javascript> <!-- function setPrint() { WB.ExecWB(8,1); } function previewPrint() { WB.ExecWB(7,1) } //--> </SCRIPT> 在<body>...</body>加入: <OBJECT classid=CLSID:8856F961-340A-11D0-A96B-00C04FD705A2 height=0 id=WB width=0> </OBJECT> <INPUT type="button" value="Set" id=button1 name=button1 onclick="setPrint();"> <INPUT type="button" value="Preview" id=button2 name=button2 onclick="previewPrint();">
下面你就试试吧.
|