且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

如何在Vb.Net中打印Windows窗体的特定组件

更新时间:2023-01-15 18:06:15

嗯,是的 - 但***不要这样做!

相反,使用 PrintDocument [ ^ ] - 它可以让您精确控制数据的打印方式和位置。这比仅仅说打印我的表单要多得多,但是你可以获得更好,更好的结果并完全控制输出。该链接包含一个示例。
Well, yes - but it's a lot better not to!
Instead, use a PrintDocument[^] - it lets you control exactly how and where your data is printed. It's a little more work than just saying "print my form" but you get a much, much better result and full control over the output. The link includes an example.