I'm using vb to get printer settings, pdf location, and pdf name. Then send them to a c# dll that then uses the file.copy to print the document(s). The issue I'm having is when someone has a printer on their local(usually plugged in) and on the network. I was wondering if there was a way to have the copy differentiate between the printers and pick the one plugged in over the network when the name's match?
c# code
public void PrintFromFile(string fileLocation, string fileName, System.Drawing.Printing.PrinterSettings printerSettings)
{
System.IO.File.Copy(fileLocation + fileName, printerSettings.PrinterName);
}