I would like to know how to send a PDF file to a printer by "LPR" from vb.net
I know that the command I must execute is "lpr -S 192.168.70.15 -P red" + filename "but I try it from Process in Windows10 and nothing comes in. This is my code:
Dim lprProcess As New Process()
With lprProcess.StartInfo
.UseShellExecute = False
.FileName = "cmd.exe"
.Arguments = "/c LPR -S " & serverLpr & " -P red -o l" & file
End With
lprProcess.Start()