一个.htm的源文件,自己改改用吧
]<table id="tbButton" border="0" cellpadding="0" cellspacing="0" style="Z-INDEX: 101; LEFT: 0px; POSITION: absolute; TOP: 0px" width="100%">
<tr id="tdButton">
<td style="width:70px" Title="文件归档"><input style="width:60px" type="button" id="btnArchive" name="btnArchive" value="归档" onclick="return btnArchive_onclick();"></td>
<td style="width:70px" Title="打印页面"><input style="width:60px" type="button" id="btnPrint" name="btnPrint" value="打印" onclick="return btnPrint_onclick();"></td>
<td style="width:70px" Title="打印预览"><input style="BACKGROUND-IMAGE: url(..\..\Images\Preview.gif);width:60px" type="button" id="btnPreView" name="btnPreView" value="预览" onclick="return PrintView();"></td>
<!--<td style="width:70px" Title="打印"><img src="../../Images/Print.ico" border="0" WIDTH="16" HEIGHT="16"><label style="Cursor:hand" onclick="return btnPrint_onclick();">打印</label></td>-->
<!--<td style="width:70px;border-bottom-style:dotted" Title="打印预览"><img src="../../Images/Preview.ico" border="0" WIDTH="16" HEIGHT="16"><label style="Cursor:hand" onclick="return PrintView();">预览</label></td>-->
<td style="width:70px" Title="打印设置"><input style="width:60px" type="button" id="btnSetup" name="btnSetup" value="打印设置" onclick="return PrintSetup();"></td>
<td style="width:70px" Title="关闭"><input style="width:60px" type="button" id="btnClose" name="btnClose" value="关闭" onclick="return Quit();"></td>
<!--<td style="width:70px" Title="退出"><img src="../../Images/Quit.ico" border="0" WIDTH="16" HEIGHT="16"><label style="Cursor:hand" onclick="return Quit();">退出</label></td>-->
<td style="width:600px">&nbsp;</td>
</tr>
<tr>
<td colspan="10">
<OBJECT classid="CLSID:8856F961-340A-11D0-A96B-00C04FD705A2" height="0" id="WebBrowser3" width="0" VIEWASTEXT VIEWASTEXT></OBJECT>
</td>
</tr>
</table><script language="javascript">
<!--
//-----------------------------------------------------------------------
function btnPrint_onclick()
{
document.all("tbButton").style.display = "none";
document.all.WebBrowser3.ExecWB(6,6)
document.all("tbButton").style.display = "";
}

//-----------------------------------------------------------------------
function PrintView()
{
//window.scrollTo(1,1) 
document.all("tbButton").style.display = "none";
document.all.WebBrowser3.ExecWB(7,1);   //打印预览
document.all("tbButton").style.display = "";
}

//-----------------------------------------------------------------------
function PrintSetup()
{
document.all.WebBrowser3.ExecWB(8,1)   //打印设置
}

//-----------------------------------------------------------------------
function Quit()
{
window.close();
}//-----------------------------------------------------------------------
-->
</script>