Here am using the below function to get default printer name
public static string GetDefaultPrinter()
{
PrinterSettings settings = new PrinterSettings();
foreach (string printer in PrinterSettings.InstalledPrinters)
{
settings.PrinterName = printer;
if (settings.IsDefaultPrinter)
return printer;
}
return string.Empty;
}
but the problem is the above code working only in local host,
when am hosting my application or publish on ...
Go to the complete details ...