在C#中打印datagridview [英] Printing the datagridview in c#

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

问题描述

你好,

有很多关于用c#打印datagridview的文章.我只是希望我能读一篇文章而已.我在Visual Studio中的C#中执行代码,并在datagridview中显示计算结果.我认为我需要满足以下条件:

1)能够打印单元格的颜色.
2)可以选择横向和纵向打印.
如果数据不能以纵向显示,则自动切换为横向.
3)用于显示副本数和其他内容的对话框
4)只需要进行快速打印,因为用户可以选择复制和粘贴来更好地进行更复杂的打印.

希望有人可以将我指向正确的文章,或者提供代码或编码建议.

谢谢

Al Yambo

Hello,

There are many articles written on printing the datagridview in c#. I just wish there would be one article I could read and that would be it. I am doing code in c# in visual studio and showing calculation results in the datagridview. Some requirements I think I need are:

1)Be able to print colors of cells.
2)Have the choice to print in landscape and portrait orientation.
If data cannot fit in portrait then automatic switch to landscape orientation.
3)Dialogue box for number of copies and some other thing
4) Just need to make a quick print as the user has the choice of copying and pasting to excel for more sophisticated printing.

Hope someone can point me to the right article or have code or coding advice.

Thanks

Al Yambo

推荐答案

查看以下内容:

http://www.xmlfox.com/print_datagridview.htm [
Look at the following:

http://www.xmlfox.com/print_datagridview.htm[^]


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

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