在asp.net中定制打印 [英] Customized Printing in asp.net

查看:92
本文介绍了在asp.net中定制打印的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想为我的asp.net网页制作一个自定义打印页面,我可以动态自定义打印设置,最后打印页面。



PS:基本上我可以动态地改变页面的大小。



其次我怎样才能做到当前页面的这些功能。

因为我的项目要求我为当前页面执行此操作。



请有人帮助我。< br $> b $ b

谢谢

I want to make a custom print page for my asp.net webpage, In which I can customize the printing settings dynamically and finally to print the page.

P.S: Basically in which I can change the size of page dynamically.

Secondly how can I do all theses functions for the current page.
Since my project requires me to do it for the current page.

Please Somebody help me.

Thank You

推荐答案

Hello Mandeep,



您只需创建一个打印按钮,该按钮将触发第二页的创建,并根据您需要的动态参数进行修改。创建第二页后,您将使用Javascript自动触发打印事件。



如果你绝对需要留在同一页面, 一团糟 (最好避免如果可能!),因为你必须改变页面本身然后发送到打印,原因是你不能改变只有流到打印机的流!

然后当然如果用户必须继续使用它的原始形式,你将不得不改回页面。



祝你好运,

江户
Hello Mandeep,

You can simply create a Print button which will trigger the creation of a second page, modified according to the dynamic parameters you require. Once the second page is created you automatically trigger the print event using Javascript.

If you absolutely need to stay on the same page, it is a mess (and best to avoid if possible!), since you will have to alter the page itself and then send to printing, the reason is that you cannot alter only the stream that goes to the printer!
and then of course you will have to alter the page back if the user has to keep working with the original form of it.

Good luck,
Edo


谢谢你江户为你的解决方案。

根据你我应该在下一页中自定义页面是对的。

但是我将如何在下一个时代预览页面。

有什么办法吗?

如果是,请说明如何,请尽可能详细描述程序。
Thank you Edo For your Solution.
According to you I should do the customizing of page in the next page is that right.
but then how will I preview the page in next age.
Is there any way?
if yes then please Tell how and please describe the procedure in detail if possible.


这篇关于在asp.net中定制打印的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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