如何使用Windows窗体C#从Panel Control打印数据 [英] How to Print data from a Panel Control using windows Form C#

查看:333
本文介绍了如何使用Windows窗体C#从Panel Control打印数据的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何使用Windows窗体C#

解决方案

从Panel Control打印数据您可以使用类 System.Drawing.Printing.PrintDocument

http://msdn.microsoft.com/en-us/library/system.drawing.printing.printdocument%28v=vs.110%29.aspx [ ^ ]。



在这篇MDSN文章的末尾可以找到一些非常好的代码示例。



如果可以,对于打印的数据源,请尝试使用用于呈现UI的数据,而不是UI本身。



-SA

How to Print data from a Panel Control using windows Form C#

解决方案

You can use the class System.Drawing.Printing.PrintDocument:
http://msdn.microsoft.com/en-us/library/system.drawing.printing.printdocument%28v=vs.110%29.aspx[^].

Some pretty good code sample can be found at the end of this MDSN article.

If you can, for a data source for your print, try to use data used to render your UI, not the UI itself.

—SA


这篇关于如何使用Windows窗体C#从Panel Control打印数据的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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