←Select platform

SetPrinterConnectionDll Method

Summary

Installs the LEADTOOLS Network Virtual Printer to the client system.

Syntax

C#
VB
C++
public static void SetPrinterConnectionDll( 
   string printerName, 
   string printerDll, 
   string serverName 
) 
  
Public Shared Sub SetPrinterConnectionDll( _ 
   ByVal printerName As String, _ 
   ByVal printerDll As String, _ 
   ByVal serverName As String _ 
)  
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#
VB
using Leadtools.Printer.Client.Installer; 
 
public void PrinterInstallerExample() 
{ 
   try 
   { 
      PrinterInstaller.SetPrinterConnectionDll("Test Printer", "C:\\Test Dll.dll", "Test Server"); 
   } 
   catch (PrinterDriverClientException ex) 
   { 
      MessageBox.Show(ex.Message); 
   } 
   catch (Exception ex) 
   { 
      MessageBox.Show(ex.Message); 
   } 
} 
Imports Leadtools.Printer.Client.Installer 
 
Private Sub PrinterInstallerExample() 
   Try 
      PrinterInstaller.SetPrinterConnectionDll("Test Printer", "C:\Test Dll.dll", "Test Server") 
   Catch ex As PrinterDriverClientException 
      MessageBox.Show(ex.Message) 
   Catch ex As Exception 
      MessageBox.Show(ex.Message) 
   End Try 
End Sub 

Requirements

Target Platforms

Help Version 19.0.2017.10.27
Products | Support | Contact Us | Copyright Notices
© 1991-2017 LEAD Technologies, Inc. All Rights Reserved.