调用IE打印功能

<body>
<OBJECT id=WebBrowser classid=CLSID:8856F961-340A-11D0-A96B-00C04FD705A2 height=0 width=0 VIEWASTEXT> </OBJECT>

<input   onclick=document.all.WebBrowser.ExecWB(1,1)   type=button   value=打开   name=Button1>     
 <input   onclick=document.all.WebBrowser.ExecWB(4,1)   type=button   value=另存为  

name=Button2>     
 <input   onclick=document.all.WebBrowser.ExecWB(10,1)   type=button   value=属性  

name=Button3>     
 <input   onclick=document.all.WebBrowser.ExecWB(6,1)   type=button   value=打印  

name=Button>     
 <input   onclick=document.all.WebBrowser.ExecWB(7,1)   type=button   value=打印预览

name=Button>     
 <input   onclick=document.all.WebBrowser.ExecWB(8,1)   type=button   value=页面设置  

name=Button4>     
 <br/>     
 <input   onclick=window.location.reload()   type=button   value=刷新   name=refresh>   

 
 <input   onclick="window.external.ImportExportFavorites(true,'');"   type=button  

value=导入收藏夹   name=Button5>     
 <input   onclick="window.external.ImportExportFavorites(false,'');"   type=button  

value=导出收藏夹   name=Button32>     
 <input   onclick="window.external.AddFavorite(location.href,   document.title)"  

type=button   value=加入收藏夹   name=Button22>     
 <br/>     
 <input   onclick="window.external.ShowBrowserUI('OrganizeFavorites',   null)"  

type=button   value=整理收藏夹   name=Submit2>     
 <input   onclick='window.location="view-source:"   +   window.location.href'  

type=button   value=查看源文件   name=Button7>     
 <input   onclick="window.external.ShowBrowserUI('LanguageDialog',   null)"  

type=button   value=语言设置   name=Button6> 
</body>

posted @ 2009-11-28 16:27  Xingsoft  阅读(597)  评论(0编辑  收藏  举报