up
解决方案 »
- 请问????GridView里放一列DropDownList如何给其绑定数据?
- 怎么将下列java代码转换为.net代码
- 如何让Cache依赖来一个目录。就是说,目录下任何一个文件有修改,缓存就更新。
- 为什么我的ajax报错呢?
- 为了页面提交后恢复到原始滚动点,遂将页面的smartNavigation属性设为true,但是一个问题解决,另一个问题又来了!
- 检测到有潜在危险的 Request.Form 值的问题
- 页面经常被刷屏,导致填报的数据丢,在线等,急
- asp.net实现串口通信
- DataGrid怎樣得到當前頁有几條記錄?謝謝
- 银联ChinaPay开发,安全性异常
- 关于Listbox中绑定数据的删除操作
- 谁有做过web远程监控的问题?请进来谈谈经验好吗?
function doprint() {
var h = factory.printing.header;
var f = factory.printing.footer;
document.all("printbtn").style.visibility = 'hidden';
factory.printing.header = "";
factory.printing.footer = "";
factory.DoPrint(false);
factory.printing.header = h;
factory.printing.footer = f;
document.all("printbtn").style.visibility = 'visible';
}
//--></script>
<body>
<br/><br/><br/>
<object id=factory style="display:none"
classid="clsid:1663ed61-23eb-11d2-b92f-008048fdd814" viewastext codebase="ScriptX.cab#Version=5,0,4,185">
</object>
<br/><br/>
<div id="printbtn"><input name=idPrint type=button value="Print the letter" onclick="doprint()"></div>
</body>保存为.html
'****************设置打印的一些参数****************
dim hkey_root,hkey_path,hkey_key
hkey_root="HKEY_CURRENT_USER"
hkey_path="\Software\Microsoft\Internet Explorer\PageSetup"
'设置网页打印的页眉页脚为空
Set RegWsh = CreateObject("WScript.Shell")
hkey_key = "\header"
RegWsh.RegWrite hkey_root + hkey_path + hkey_key,"&w&b第&p页 共&P页"
hkey_key = "\footer"
RegWsh.RegWrite hkey_root + hkey_path + hkey_key,""
IE页面设置参数以及说明:
页面标题:&w
页面路径:&u
当前页号:&p
总共页数:&P
当前日期:&d
当前时间:&t
右对齐:&b
我可以发给你,与国外的FastReport功能类似。
web打印小组件,可以看http://www.fcsoft.com.cn/eprint/index.htm 这里有在线演示