如何在Vb.Net中打印Windows窗体的特定组件 [英] How Do I Print Specific Component Of A Windows Form In Vb.Net

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

问题描述

我创建的表单基本上是一个带有文本框和按钮的帐单,它在列表视图中添加产品,数量和价格,并在文本框中显示最终总数。

是否可以打印我想要的组件,比如listview和包含总金额的文本框?

the form i created is basically a bill with textboxes and buttons of which adds the product,quantity and price in a list view and displays the final total in textbox.
is it possible to just print the component i want, like just the listview and the textbox containing the total amount?

推荐答案

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

相反,使用 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.


这篇关于如何在Vb.Net中打印Windows窗体的特定组件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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