ASP.NET GridView打印
2015-02-11 11:53
148 查看
把GridView包含到一个DIV中,然后将DIV的Html提交到另一个页面,打印这个页面
页面Html:
Javascript脚本:
页面Html:
<div> <!--要打印的内容--> </div>
Javascript脚本:
function printPage() { var newWin = window.open(‘printer’,”,”); $nbsp;var titleHtml = document.getElementById(‘printdiv’).innerHTML; $nbsp;newWin.document.write(titleHtml); $nbsp;newWin.document.location.reload(); $nbsp;newWin.print(); $nbsp;newWin.close(); }
相关文章推荐
- asp.net实现打印gridview
- 在Asp.net中将GridView打印为word或者Excel
- asp.net(c#)打印excel大数据量,最简单,最快的办法,个人认为,哈哈,有人会说,用gridview打印excel不是很方便吗?但是我发现数据量一大gridview就不行,速度慢不说,还会出错
- ASP.NET GridView导出Excel 打印预览换行显示不全
- 在Asp.net中将GridView打印为word或者Excel
- 在Asp.net中将GridView打印为word或者Excel
- ASP.NET之Web打印-终极解决篇
- (原作)ASP.NET中数据库数据导入Excel并打印
- [水晶报表小技巧-开发-3]ASP.Net中使用水晶报表10的打印功能
- ASP.NET中实现打印
- ASP.NET设置ie打印两法
- ASP.NET 2.0中GRIDVIEW排序
- ASP.NET页面打印
- ASP.NET中实现Web打印的方案
- asp.net 2.0中一次性更新所有GRIDVIEW的记录 (翻译)
- asp.net 2.0中用GRIDVIEW插入新记录 (转)
- asp.net 2.0中一次性更新所有GRIDVIEW的记录
- ASP.NET 2.0中GRIDVIEW排序
- 蛙蛙推荐:asp.net和水晶报表实现套表打印
- ASP.NET中数据库数据导入Excel并打印