Printing to only USB printer
- From: "F L A S H" <flash@xxxxxxxxx>
- Date: Tue, 27 Sep 2005 13:35:36 GMT
I would like to be able to code my VB program to only print to my USB
printer. Even though another tcp or lpt1 printer may be the default printer
on the PC, I only want my VB app to print to the USB thermal printer.
Dim Pr As Printer
Dim myUSBPrinter As Printer
For Each Pr In Printers
If Instr ( Pr.Port, "USB001" ) > 0 Then
' Found a USB Printer
Set myUSBPrinter = Pr
Exit For
End If
Next Pr
Pr always returns "nothing". It sees LPT1 and USB001 but will not set
USB001 as myUSBPrinter value.
Any help would be appreciated.
Thanks,
Shannon
.
- Follow-Ups:
- Re: Printing to only USB printer
- From: Mike Williams
- Re: Printing to only USB printer
- Prev by Date: Re: Date Variable
- Next by Date: Re: SSTab - TabStrip
- Previous by thread: PLEASE HELP ME! i have a big problem with creating and plaing META FILES and seting their MAPMODE
- Next by thread: Re: Printing to only USB printer
- Index(es):
Relevant Pages
|