且构网

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

在VB.Net中打印文本框文本的最快方法

更新时间:2022-12-27 19:56:33

对于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