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

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

问题描述

大家好,

我正在使用window.print()打印页面.我想设置打印页面方向
在asp.net中使用c#.net.是否可以设置页面方向
从代码?如果可以,请帮助我.

谢谢.....

Hi All,

I am using window.print() to print a page. I want to set the print page orientation
using c#.net in asp.net. Is it possible to set the page orientation
from the code? If so can some please help me out how to do that.

thank you.....

推荐答案

打印页面是客户端的功能.我怀疑您可以在服务器端设置它.您可以肯定地使用CSS 在aspx页面上进行设置.看看此线程 [
Printing a page is client side functionality. I doubt you can set it on server side. You can surely set it on aspx page using CSS. Have a look at this thread[^] discussing the same.

Surely, you can have CSS defined at runtime through your code, if that helps!


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

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