Posted by a ceTe Software moderator
Hi,
Try using the UNC path to access the specific network printer and see it works. Please refer to the documentation on printing to a network printer
here.
We recommend installing the respective printer driver on the system where in application is running.
Also try getting the list of printers which your application can access dynamically using the GetLocalPrinters method and print the Default printer name. Use the correct printer's name and see it works for you.
Here is a code sample to get locally installed printers.
Printer[] printerList = Printer.GetLocalPrinters();
for (int i = 0; i < printerList.Length; i++)
{
string printerName = printerList[i].Name;
Console.WriteLine("Installed Printers on the System:: " + printerName);
}
Console.Read();
You can Open the Devices and Printers on the system>>right click on the required printer driver/printer>>Printer Properties>>Security Tab >>Add a user and give all permissions.
Thanks,
ceTe Software Support Team