I can print using vb to my local lpt1, using the code below.

My problem is that now i need to print to a network printer - i need to specify printer name instead of the lpt1.

How can i do this?

VB Code:
  1. Open "lpt1" For Output As #1
  2.         For i = 1 To txtPrintNo
  3.             Print #1, strText
  4.         Next i