SetPrinterConnectionDll Method

Summary
Installs the LEADTOOLS Network Virtual Printer to the client system.
Syntax
C#
C++/CLI
public static void SetPrinterConnectionDll( 
   string printerName, 
   string printerDll, 
   string serverName 
) 
public: 
static void SetPrinterConnectionDll(  
   String^ printerName, 
   String^ printerDll, 
   String^ serverName 
)  

Parameters

printerName
Printer name

printerDll
Printer demo DLL

serverName
Printer server name

Remarks

To uninstall a printer from the client's system, remove the printer from the system's machine using the normal system-specific procedures.

Example
C#
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); 
   } 
} 
Requirements

Target Platforms

Help Version 22.0.2023.1.25
Products | Support | Contact Us | Intellectual Property Notices
© 1991-2023 LEAD Technologies, Inc. All Rights Reserved.

Products | Support | Contact Us | Intellectual Property Notices
© 1991-2023 LEAD Technologies, Inc. All Rights Reserved.