LEADTOOLS Virtual Printer (Leadtools.Printer assembly) Send comments on this topic. | Back to Introduction - All Topics | Help Version 17.0.3.30
GetCodeMessage Method
See Also 
Leadtools.Printer Namespace > PrinterDriverException Class : GetCodeMessage Method



code
A PrinterDriverExceptionCode value to get the string message for.

The GetCodeMessage Method is available as an add-on to the LEADTOOLS Document and Medical Imaging toolkits.

code
A PrinterDriverExceptionCode value to get the string message for.
Gets the error string that corresponds to a specific PrinterDriverExceptionCode.

Syntax

Visual Basic (Declaration) 
Public Shared Function GetCodeMessage( _
   ByVal code As PrinterDriverExceptionCode _
) As String
Visual Basic (Usage)Copy Code
Dim code As PrinterDriverExceptionCode
Dim value As String
 
value = PrinterDriverException.GetCodeMessage(code)
C# 
public static string GetCodeMessage( 
   PrinterDriverExceptionCode code
)
C++/CLI 
public:
static String^ GetCodeMessage( 
   PrinterDriverExceptionCode code
) 

Parameters

code
A PrinterDriverExceptionCode value to get the string message for.

Remarks

By default, PrinterDriverException has a string message for each PrinterDriverExceptionCode. Get this message by calling this method. Additionally, any string message for any PrinterDriverExceptionCode can be changed by using the SetCodeMessage method.

Requirements

Target Platforms: Microsoft .NET Framework 2.0, Windows 2000, Windows XP, Windows Server 2003 family, Windows Server 2008 family, Windows Vista, Windows 7

See Also

Leadtools.Printer requires a Printer module license and unlock key. It is included as part of LEADTOOLS Document Imaging Enterprise. For more information, refer to: Imaging Pro/Document/Medical Features