使用Asp.Net在Ajax Html编辑器中进行简单打印 [英] Simple Print in Ajax Html Editor Using Asp.Net

查看:84
本文介绍了使用Asp.Net在Ajax Html编辑器中进行简单打印的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述





我正在使用带有Ajax Html编辑器的Asp.net web应用程序。



我需要来自Ajax Html Editor的简单打印选项。不需要任何转换打印(如pdf等...)



任何解决方案PLZ给我........... 。



谢谢



Mukesh

解决方案

< blockquote> 来自Ajax Html编辑器的简单打印选项。

为什么不在打印按钮上定义一个JS事件单击你在哪里获取HTML编辑器内容,用div标签包装它然后推动整个div标签打印?



有多种方法可以做到 - 比如将div内容推送到静态页面或动态页面进行打印。可以在这里找到一个样本:

打印按钮,只打印div标签内的内容 [ ^ ]

在不打开新窗口的情况下在div标签中打印内容 [ ^ ]


Hi,

I am using Asp.net web applicaiton with Ajax Html Editor.

I need simple printing option from Ajax Html Editor. Don''t need any convertion for print (like pdf, etc...)

any solution plz give me............

Thanks

Mukesh

解决方案

simple printing option from Ajax Html Editor.
Why not define a JS event on print button click where you take the HTML Editor content, wrap it with a div tag and then push the whole div tag to print?

There can be various ways to do it - like pushing div content to a static or a dynamic page to print. A sample can be found here:
Print button that prints only what''s within a div tag[^]
Printing content in a div tag without opening a new window [^]


这篇关于使用Asp.Net在Ajax Html编辑器中进行简单打印的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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