I am trying to send an PDF file to a printer using the File.Copy
method in C#. When I reference the printer by name however, it always responds with
'Could not find a part of the path'
The printer name is fully qualified. The user is selecting from a combo box that displays all the systems printers using the PrinterSettings.InstalledPrinters
values.
Am I missing something simple?
Example:
File.Copy(FileInfo.FullName, "\\\\ServerName\\PrinterName", true);
The "\\\\ServerName\\PrinterName"
is directly one of the names from PrinterSettings.InstalledPrinters
collection.