如何打印agridview [英] how to print agridview
本文介绍了如何打印agridview的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我想添加按钮来打印最终的gridview
我该怎么做?
提前感谢!
解决方案
不要打印网格视图,打印放在网格视图中的数据。这里清楚地解释了开发System.Windows.Forms
的打印代码的想法:
http://msdn.microsoft.com/en-us/library/system.drawing.printing.printdocument.aspx [ ^ ]。
在本页末尾,您将找到一个清晰的代码示例。
< DD> -SA
i want to add button to print the final gridview
how can i do that?
thanks in advance!
解决方案
Don''t print a grid view, print the data which you put in grid view. The idea of development of the printing code forSystem.Windows.Forms
is clearly explained here:
http://msdn.microsoft.com/en-us/library/system.drawing.printing.printdocument.aspx[^].
At the end of this page, you will find a clear code sample.
—SA
这篇关于如何打印agridview的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文