Leadtools.Printer Requires Document/Medical product license | Send comments on this topic. | Back to Introduction - All Topics | Help Version 16.5.9.25
SetCodeMessage Method
See Also 
Leadtools.Printer Namespace > PrinterDriverException Class : SetCodeMessage Method



code
A PrinterDriverExceptionCode value to set the string message for.
message
A String that contains the new message for code.
code
A PrinterDriverExceptionCode value to set the string message for.
message
A String that contains the new message for code.
Sets the error string that corresponds to a specific PrinterDriverExceptionCode

Syntax

Visual Basic (Declaration) 
Public Shared Sub SetCodeMessage( _
   ByVal code As PrinterDriverExceptionCode, _
   ByVal message As String _
) 
Visual Basic (Usage)Copy Code
Dim code As PrinterDriverExceptionCode
Dim message As String
 
PrinterDriverException.SetCodeMessage(code, message)
C# 
public static void SetCodeMessage( 
   PrinterDriverExceptionCode code,
   string message
)
C++/CLI 
public:
static void SetCodeMessage( 
   PrinterDriverExceptionCode code,
   String^ message
) 

Parameters

code
A PrinterDriverExceptionCode value to set the string message for.
message
A String that contains the new message for code.

Remarks

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

Requirements

Target Platforms: Microsoft .NET Framework 3.0, Windows XP, Windows Server 2003 family, Windows Server 2008 family

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