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



password
Printer administration password.
password
Printer administration password.
Locks the specified printer to prevent applications from directly printing to it.

Syntax

Visual Basic (Declaration) 
Public Sub Lock( _
   ByVal password As String _
) 
Visual Basic (Usage)Copy Code
Dim instance As Printer
Dim password As String
 
instance.Lock(password)
C# 
public void Lock( 
   string password
)
C++/CLI 
public:
void Lock( 
   String^ password
) 

Parameters

password
Printer administration password.

Example

Refer to Printer.Specifications example.

Remarks

The lock password must be the same as the password that was used when the specified printer was installed.

To unlock the specified printer and enable applications to print directly to it, use the UnLock method.

To check whether applications were prevented from directly printing to the specified printer, use the IsPrinterLocked method.

Only printers that were originally created with a password can be locked.

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