将windows窗体转换为图片
我环顾四周,我可能把谷歌和关键词搞混了。
我希望在我的 Windows 表单应用程序中实现一个支持模块,当用户单击按钮时,会向支持团队发送一封电子邮件,并附上屏幕截图(有问题的表单)的附件,
我正在寻找类似
表单的东西。 SaveAsImage(path)
关于如何实现这一点的任何想法或者我是否错过了明显的
.net 3.5
I looked around and I may have confused google with the keywords.
I am looking to implement a support module in my windows forms application where when a user clicks on a button, an email is sent to the support team, with an attachment of a screenshot (form in question)
I am looking for something like
form.SaveAsImage(path)
any thoughts on how this can be implemented or have I missed the obvious
.net 3.5
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
似乎有一个关于此的 Howto: “HowTo:打印 Windows 窗体”
但是,我确实认为您应该在应用程序中实现打印。也许这会有所帮助(?):http://msdn.microsoft.com/en -us/magazine/cc188767.aspx
There appears to be a Howto on this: "HowTo: Print a Windows Form"
However, I really think that you should implement printing in your application. Perhaps this will help(?): http://msdn.microsoft.com/en-us/magazine/cc188767.aspx
尝试使用 Control.DrawToBitmap方法并确保运行代码时表单具有焦点。
Try using the Control.DrawToBitmap method and make sure the form has focus when you run the code.