vb.net中的PrintDocument [英] PrintDocument in vb.net

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

问题描述

制作printdocument的基本代码是什么?因为我要在form1

What is the essential code in making printdocument? Because I want to print all labels,textbox, and picturebox inside the form1

推荐答案

中打印所有标签,文本框和图片框,所以您如何猜测是否将必需的代码示例放在了完全相同的页面上作为此类的MSDN文档:
http://msdn.microsoft.com/en-us/library/system. drawing.printing.printdocument.aspx [ ^ ].

祝你好运,
-SA
How you could guess if you tried, the essential code sample is placed on exact same page as the MSDN documentation on this class:
http://msdn.microsoft.com/en-us/library/system.drawing.printing.printdocument.aspx[^].

Good luck,
—SA


如果您只想打印表单内容(我不会,因为它看起来真的很丑),您可以使用PrintForm类: http://msdn.microsoft.com/zh-CN /library/microsoft.visualbasic.powerpacks.printing.printform.aspx [http://msdn.microsoft.com/en-us/library/system.drawing.printing.printdocument.aspx [
If you just want to print the form content (and I wouldn''t, myself becasue it will look really ugly), you could use the PrintForm class: http://msdn.microsoft.com/en-us/library/microsoft.visualbasic.powerpacks.printing.printform.aspx[^] - there is an example at the bottom.

If you use a PrintDocument, it is a little more complex, but there is an easy to follow example at the bootom of the class infor page in MSDN: http://msdn.microsoft.com/en-us/library/system.drawing.printing.printdocument.aspx[^]


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

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