要动态打印页面内容。 [英] To Print page content dynamically.

查看:76
本文介绍了要动态打印页面内容。的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个动态显示数据的页面。

在这个数据生成中,我有多行文本框,页面中有许多其他控件。

我想要实现打印功能,我可以打印整个页面内容,包括多行文本框数据。

解决方案

请参阅链接在Asp.NET中打印


你可以轻松完成....

参考: http://1codex.blogspot.in/ 2012/01 / print-using-javascript-in-aspnet.html [ ^ ]

分步帮助


在onclick中使用以下代码< br $>


 javascript: window  .PRINT()


I have a page where the data is displayed dynamically.
In this data generation, i have multiline text box with many other controls in the page.
I want to implement print functionality where i can print entire page content including multiline text box data.

解决方案

Refer to the link Printing in Asp.NET


you can do it easily....
refer: http://1codex.blogspot.in/2012/01/print-using-javascript-in-aspnet.html[^]
for step by step help


use the below code in onclick

javascript:window.print()


这篇关于要动态打印页面内容。的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆