我用以下语句进行网页打印:
<OBJECT id="WebBrowser" height="0" width="0" classid="CLSID:8856F961-340A-11D0-A96B-00C04FD705A2" VIEWASTEXT> </OBJECT>
<input onclick="document.all.WebBrowser.ExecWB(6,6)" type="button" value="直接打印" style="left: 613px; position: relative; top: 283px">
<input onclick="document.all.WebBrowser.ExecWB(7,1)" type="button" value="打印预览" style="left: 532px; position: relative; top: 309px" id="Button1"> 但是每次打印上面都有打印的按钮,我现在需要一打开网页,就自动打印,打印完就自动关闭网页,(要求打印的网页上没有打印按钮)该如何实现,请指教
<OBJECT id="WebBrowser" height="0" width="0" classid="CLSID:8856F961-340A-11D0-A96B-00C04FD705A2" VIEWASTEXT> </OBJECT>
<input onclick="document.all.WebBrowser.ExecWB(6,6)" type="button" value="直接打印" style="left: 613px; position: relative; top: 283px">
<input onclick="document.all.WebBrowser.ExecWB(7,1)" type="button" value="打印预览" style="left: 532px; position: relative; top: 309px" id="Button1"> 但是每次打印上面都有打印的按钮,我现在需要一打开网页,就自动打印,打印完就自动关闭网页,(要求打印的网页上没有打印按钮)该如何实现,请指教
解决方案 »
- DropDownList实现选择后,再次打开本页面其中DropDownList默认为上次选择的值?
- 更新表中字段,但该字段又是更新条件,不执行?
- 恳求哪位高手帮我看看我的GridView控件为什么显示不出来?
- sql2000备份的数据库还原到sql2005的经典解决方法
- 什么原因会导至cs文件中控制Panel显示会无效?
- 在网页中显示Excel文件
- 服务器控件DrowDownList在js中使用的问题?
- 用户控件使用的问题
- 水晶報表轉檔時出錯﹐當我加入參數字段時﹗請各位幫忙看看
- asp.net jQuery创建行列时无法获取input[type=text]的值
- ListBox的透明设置在IE8以下的浏览器不生效!!!!
- 关于服务器端控件Lable的Text属性的问题?
document.all.mcube_formprint_toolbar.style.display="none";
// 打印页面
//清空页码
pageSetupClear();
wb.execwb(6,1);
//打印完成后恢复页码。
pageSetupReset();
document.all.mcube_formprint_toolbar.style.display="";
}
@meta .print{...}
teXTBOX1.ATTRIBUTES.ADD的第二个参数(处理事件的函数)代码必须是js吗?我用VB可以吗