SetPrinterConnectionDll Method
Summary
Installs the LEADTOOLS Network Virtual Printer to the client system.
Syntax
Parameters
printerDll
Printer demo DLL
serverName
Printer server name
Example
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