I have written an application to print 2 different types of documents, english and french. I need to be able to direct the document to a printer based on it's type ie english goes to one printer french to another.
these printers are accessed via a network, they are not local to the pc that the app will run on
I can not get the program to print to any other printer other than the default printer
I have used the following code to find the engligh printer in question
For Each UsePrinter In Printers
If (UsePrinter.DeviceName = "\\Choprintsvr\oper-hp#1"
Then
Set printer = UsePrinter
End If
Next
but when I print the document it goes to the default printer
Can I direct the document to a non default printer or do I have to change the default printer for the pc to be able to print to that printer?
thanks in advance
these printers are accessed via a network, they are not local to the pc that the app will run on
I can not get the program to print to any other printer other than the default printer
I have used the following code to find the engligh printer in question
For Each UsePrinter In Printers
If (UsePrinter.DeviceName = "\\Choprintsvr\oper-hp#1"
Set printer = UsePrinter
End If
Next
but when I print the document it goes to the default printer
Can I direct the document to a non default printer or do I have to change the default printer for the pc to be able to print to that printer?
thanks in advance