• 首页 首页 icon
  • 工具库 工具库 icon
    • IP查询 IP查询 icon
  • 内容库 内容库 icon
    • 快讯库 快讯库 icon
    • 精品库 精品库 icon
    • 问答库 问答库 icon
  • 更多 更多 icon
    • 服务条款 服务条款 icon

只打印表格的组合框..

用户头像
it1352
帮助5

问题说明

我有一个表格,它有一个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..!

正确答案

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

http://msdn.microsoft.com/en-us/library/system.drawing.printing.printdocument(v= 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(v=vs.110).aspx[^].

Please see the code sample in this article.

—SA

这篇好文章是转载于:学新通技术网

  • 版权申明: 本站部分内容来自互联网,仅供学习及演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,请提供相关证据及您的身份证明,我们将在收到邮件后48小时内删除。
  • 本站站名: 学新通技术网
  • 本文地址: /reply/detail/tanhbbcekk
系列文章
更多 icon
同类精品
更多 icon
继续加载