打印的Winform /视觉元素 [英] Print a Winform/visual element
本文介绍了打印的Winform /视觉元素的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
所有我通过谷歌找到的物品过时或相互矛盾的。
All the articles I've found via google are either obsolete or contradict one another.
什么是打印形式,或者说,一个RichTextBox的最简单的方法C#?我认为这是通过设置文件
,但它如何被转换?
What's the easiest way to print a form or, say, a richtextbox in c#? I think it's using the PrintDiaglog
class by setting the Document
, but how does this get converted?
推荐答案
至少在VS 2008中,它很容易。我花了大约一两分钟读你的问题后的答案代码。这里就是我从借来的:
At least in VS 2008, its very easy. It took me about a couple of minutes to code the answer after reading your question. Here's where I borrowed it from:
的http:// MSDN .microsoft.com / EN-US /库/ 6he9hz8c.aspx
我进行了测试,它的工作原理。
I tested this, and it works.
这篇关于打印的Winform /视觉元素的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文