如何使用vb.net在Windows XP中从DOS将文档打印到USB打印机 [英] How to Print a document to a USB Printer from DOS in Windows XP by using vb.net
本文介绍了如何使用vb.net在Windows XP中从DOS将文档打印到USB打印机的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
大家好,
谁能告诉我如何通过VB.Net从DOS将文档打印到USB打印机?
现在,我正在从事杂货店应用程序的项目.我想通过Lipi LTP 200型号打印机打印账单,但问题是该打印机具有USB端口.
我可以通过LTP1端口打印账单,但是在USB端口打印机中是不可能的.
如果有人知道该怎么做,请帮忙.
问候
Subrat,
来自印度
:cool :: cool:
Hello everybody,
Can anyone tell me that how I can print a document to a USB Printer from DOS through VB.Net?
Now I am working on a project for a grocery shop application. I want to print a bill through Lipi LTP 200 model printer but the problem is that this printer has a USB port.
I can print the bill via LTP1 port but it is not possible in USB port printers.
If anyone know how to do this then please help.
Regards
Subrat,
From India
:cool::cool:
推荐答案
在查看 http://www.dos2usb.com/index.htm
我的结果好坏参半-即大部分时间都在XP中工作-不在Vista或7上尝试过此操作
Net Use LPT1 \\ComputerName\Printer_Name /Persistent:Yes
我认为必须共享打印机
还是我没有尝试过的东西是vbscript:-
WshNetwork.AddPrinterConnection
除此之外,我什么都没想到-抱歉:(
I have used this utility before look at http://www.dos2usb.com/index.htm
I have had mixed results - i.e works most of the time in XP - not tried this on Vista or 7
Net Use LPT1 \\ComputerName\Printer_Name /Persistent:Yes
I believe the printer has to be shared
or something I have not tried is vbscript :-
WshNetwork.AddPrinterConnection
other than these I cannot think of anything else - sorry :(
使用 ^ ]打印机代替.您将可以直接从应用程序中进行打印.
Use a RAW[^] printer instead. You will be able to print directly from your application.
这篇关于如何使用vb.net在Windows XP中从DOS将文档打印到USB打印机的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文