PrinterDriverClientException Class

Summary
Represents the exception that is thrown when a printing error occurs.
Syntax
C#
C++/CLI
[SerializableAttribute()] 
public class PrinterDriverClientException : Exception 
[SerializableAttribute()] 
public ref class PrinterDriverClientException : public System.Exception  
Remarks

The PrinterDriverClientException class defines a Code property that is helpful to determine the cause of an error.

Default messages are implemented for each Code, you can however modify any message through the GetCodeMessage and SetCodeMessage methods.

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.