在VB.Net中打印文本框文本的最快方法 [英] Fastest way to Print text box text in VB.Net
问题描述
你好朋友
我的名字是Sarfaraz。我正在为需要在Dot Matrix打印机上打印收据的客户开发软件。
我知道如何打印文本框的值,但这不是在Dotmatrix打印机上打印的最佳方式。 br />
请帮助我以下内容:
1.我应该将文本框和列表框的详细信息加载到网格中,然后打印在收据上。或者
2.我应该将文本框和列表框的内容保存到文本文件并打印。或者
3.我可以使用水晶报告给收件人打印。
请帮助我。
谢谢
对于Dot Matric打印机,#2是最佳选择。水晶报告和其他图形格式会非常慢并且会使用大量墨水。
保存到文本文件并执行shell命令
类型filename.txt> PRN
Hello friends
My name is Sarfaraz. I am developing a software for a client who needs to print receipts on a Dot Matrix printer.
I know how to print values of Text box but that is not the best way to print on Dotmatrix printer.
Please help me in the following:
1. Should i load the details of text boxes and listbox to a grid and then print on a receipt. or
2. Should I save the contents of text boxes and listbox to text file and print. or
3. Sould I use crystal reports for the recipt to print.
Please help me in that.
Thank you
For Dot Matric printer, #2 is the best option. Crystal reports and other graphics format will be really slow and will use lot of ink.
Save to a text file and execute the shell command
type "filename.txt" > prn
这篇关于在VB.Net中打印文本框文本的最快方法的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!