Visual Basic打印代码

问题描述:

大家好!
我想知道什么代码可以使我的应用程序使用打印机进行打印?
因为我设法添加了工具,但没有设法添加代码:S

Hey every body!
I was wondering what are the codes that will let my application print using the printer?
cuz i managed to add the tools but didn''t manege to add the codes :S
any one can help please?

取决于您要打印的内容,但是请发布一些代码以向我们提供有关需要帮助的线索.

这可能会有所帮助. [
Depends on what you are attempting to print, but post some code to give us a clue as to where you need help.

This may help.[^]


,您是说在表单上添加了诸如PrintDocument,PrintPreviewControl,PrintDialog等之类的内容吗?
如果是这样的话,那么只需在Google每个控件上搜索以查看如何使用它即可.
例如:
VB PrintDialog [ ^ ]
so are you saying that on your form, you added things like the PrintDocument, PrintPreviewControl, PrintDialog, etc...?

Cause if so, then just google each control to see how to use it.
As an example:
VB PrintDialog[^]


如果我在文本框中有文本并且想要将其打印在纸上,那么代码是什么?
if i have text in a text box and i want to print it on a paper, what are the codes for that?