Hi.
I developed an application in vb.net.
This app send any type of file to print.
I selected this printer in my app.
I use this following codes:
Seting default printer before print
Public Sub SetDefaultPrinter(ByVal PrintName As String)
Dim WshNetwork As Object = CreateObject("WScript.Network")
WshNetwork.SetDefaultPrinter(PrintName)
WshNetwork = Nothing
End Sub
Printing the file
Public Sub Imprimir(ByVal FileName As String)
Dim pr As New Process
pr.StartInfo.FileName = FileName
pr.StartInfo.Verb = "Print"
pr.StartInfo.CreateNoWindow = True
pr.StartInfo.WindowStyle = ProcessWindowStyle.Hidden
pr.Start()
End Sub
My problem:
I have 2 printers, Printer A and Printer B .
In print A I can print, but in print B I cannot.
These printers are installed in the network.
I can pirnt in the printer B via MS Word.
Does anyone know what´s hapining? Any ideas?