public static void SetPrinterConnectionDll(
string printerName,
string printerDll,
string serverName
)
printerName
Printer name
printerDll
Printer demo DLL
serverName
Printer server name
To uninstall a printer from the client's system, remove the printer from the system's machine using the normal system-specific procedures.
using Leadtools.Printer.Client.Installer;
public void PrinterInstallerExample()
{
try
{
PrinterInstaller.SetPrinterConnectionDll("Test Printer", "C:\\Test Dll.dll", "Test Server");
}
catch (PrinterDriverClientException ex)
{
Console.WriteLine(ex.Message);
}
catch (Exception ex)
{
Console.WriteLine(ex.Message);
}
}