在文本框中打印文本 [英] Printing the text in textbox

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

问题描述

再次问好;)
今天,我想制作一个具有通过默认Windows打印机进行打印的功能的文本框...
我该怎么做?我应该在按钮单击"方法中写什么动作?

如果未在系统中安装打印机,将会出现什么情况?

问候.

Hello again ;)
Today i wanna make a textbox with function of printing via default windows printer...
How can i make it? What action should i write in Button click method?

And what the catch situation would be, if the printer is not installed in the system?

Regards.

推荐答案

在表单中使用PrintDialog组件.这是有关如何使用它的链接.

http://msdn.microsoft.com/en-us/library/system. windows.forms.printdialog.aspx
Use the PrintDialog component in your form. Here is a link on how to use it.

http://msdn.microsoft.com/en-us/library/system.windows.forms.printdialog.aspx


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

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