←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
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 
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); 
   } 
} 

Requirements

Target Platforms

Products | Support | Contact Us | Copyright Notices
© 1991-2017 LEAD Technologies, Inc. All Rights Reserved.
Click or drag to resize