Printing to only USB printer



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






.



Relevant Pages

  • Re: Problem with AS 4.1 and USB
    ... Ah, if you can browse the device, than the RAPI component is working and TCP ... > Where do find the USB to check on phone? ... >> And a UDP outgoing port of. ... >>> I can ping at 169.254.2.1 but still AS just says Connecting and at last ...
    (microsoft.public.pocketpc.activesync)
  • Re: WM5, Dell Axim, USB, and disabling TCP/IP?
    ... All of ActiveSync uses TCP. ... a RNDIS protocol, which is a much richer protocol. ... devices used PPP as the protocol over the serial USB cable. ... A colleague has an older Axim which uses straight USB ...
    (microsoft.public.pocketpc.activesync)
  • Try to transfer my App ...
    ... VS2003 tries to use a TCP ... Connection which does not work over USB nor over Bluetooth. ...
    (microsoft.public.dotnet.framework.compactframework)