从ASP.NET打印 [英] Printing from ASP.NET

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

问题描述

我有一个具有Gridview的表单.我需要用户仅能打印网格(当然还有数据).
我该怎么做?另一个问题是,即使我在屏幕上看起来不错,因为字体太小,我也可以打印它.如何在代码中设置打印机设置(页边距,字体等)?

谢谢.

I have a form that has a Gridview. I need the user to be able to print just the grid (with data, of course.)
How do I do it? The other problem is that even though it looks good on the screen if I print it as it is the font is too small. How do I set printer settings (page margins, font, etc.) in my code?

Thank you.

推荐答案

浏览以下一些资源.它们可能对您有用-

http://csharpdotnetfreak.blogspot.com/2012/07/print-gridview-data-in-aspnet-c-vb.html [ http://www.aspsnippets.com/Articles/Print-functional- in-ASP.Net-GridView-control.aspx [ ^ ]
http://www. aspsnippets.com/Articles/Print-ASPNet-GridView-with-page-breaks-and-repeat-header-on-each-page.aspx [ http://www.dotnetcode.in/2012/04/take-print-only-gridview-data-in-aspnet.html [ http://aspdotnetcodebook.blogspot.in/2008/02/printing-gridview-from- aspnet.html [ ^ ]
Go through some of the following resources. They could be useful to you -

http://csharpdotnetfreak.blogspot.com/2012/07/print-gridview-data-in-aspnet-c-vb.html[^]
http://www.aspsnippets.com/Articles/Print-functionality-in-ASP.Net-GridView-control.aspx[^]
http://www.aspsnippets.com/Articles/Print-ASPNet-GridView-with-page-breaks-and-repeat-header-on-each-page.aspx[^]
http://www.dotnetcode.in/2012/04/take-print-only-gridview-data-in-aspnet.html[^]

This one is perhaps what you are looking for -
http://aspdotnetcodebook.blogspot.in/2008/02/printing-gridview-from-aspnet.html[^]


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

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