如何打印Windows窗体vb.net? [英] How to print a windows form vb.net?

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

问题描述





我有Windows应用程序,我正在使用visual studio 2012.我需要打印一个带有控件的表单。我正在使用power pack和printForm组件。问题是表单很大且可滚动,所以它只打印一部分。有什么方法可以打印整个表格甚至滚动(隐藏)部分吗?



我正在使用的代码:

Hi,

I have windows application and I am using visual studio 2012. I need to print a form with its controls. I am using the power packs and printForm component. The problem is the form is large and scrollable so it is printing only a portion of it. Is there any way that I can print the whole form even the scrolled (hidden) part?

The code i''m using:

PrintForm1.Print(Me, PowerPacks.Printing.PrintForm.PrintOption.Scrollable)

谢谢,

Missa

Thank you,
Missa

推荐答案

使用以下代码:



PrintForm1 .Print(Me,PowerPacks.Printing.PrintForm.PrintOption.FullWindow)
Use below code:

PrintForm1.Print(Me, PowerPacks.Printing.PrintForm.PrintOption.FullWindow)


这篇关于如何打印Windows窗体vb.net?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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