如何只打印表格的组合框..! [英] How only groupbox of an form is printed..!

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

问题描述

我有一个表格,它有一个groupbox,这个groupbox包含一个datagridview和一些lables想要只打印这个组框形式表格..其内容..!

I have a form it has a groupbox and this groupbox contains a datagridview and some lables a want to print only this group box form form .. With its contents..!

推荐答案

您可以打印任何您想要的上下文;您没有义务打印表格。您可以使用类 System.Drawing.Printing.PrintDocument

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



请参阅本文中的代码示例。



-SA
You can print any context you want; you are not obliged to print the form. 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[^].

Please see the code sample in this article.

—SA


这篇关于如何只打印表格的组合框..!的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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