How to get Printer Info in .NET?

As dowski suggested, you could use WMI to get printer properties. The following code displays all properties for a given printer name. Among them you will find: PrinterStatus, Comment, Location, DriverName, PortName, etc. using System.Management; … string printerName = “YourPrinterName”; string query = string.Format(“SELECT * from Win32_Printer WHERE Name LIKE ‘%{0}'”, printerName); using (ManagementObjectSearcher searcher … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)