我如何在asp.net中打印表单 [英] How do i do a print form in asp.net
本文介绍了我如何在asp.net中打印表单的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
I just tried to print that form but am not able to achieve that .
The page which will get printed is not the one the user is viewing,so the page should not be view-able no form should be loaded behind
< b>我尝试了什么:
< STYLE type =text / css>
@media print {
.PrintOnly {font-size:10pt;线高:120%;背景:白色;}
}
@media screen {
.PrintOnly {display:none}
}
< / STYLE>
What I have tried:
<STYLE type="text/css">
@media print {
.PrintOnly {font-size: 10pt; line-height: 120%; background: white;}
}
@media screen {
.PrintOnly {display: none}
}
</STYLE>
推荐答案
您必须在媒体中隐藏所有非打印形式的内容。
You have to hide in media print everything that is NOT printform.
>
这篇关于我如何在asp.net中打印表单的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文