LEADTOOLS Virtual Printer (Leadtools.Printer assembly)
LEAD Technologies, Inc

Lock Method






Printer administration password.
Locks the specified printer to prevent applications from directly printing to it.
Syntax
public void Lock( 
   string password
)
'Declaration
 
Public Sub Lock( _
   ByVal password As String _
) 
'Usage
 
Dim instance As Printer
Dim password As String
 
instance.Lock(password)
public void Lock( 
   string password
)
 function Leadtools.Printer.Printer.Lock( 
   password 
)
public:
void Lock( 
   String^ password
) 

Parameters

password
Printer administration password.
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.

Example
Refer to Specifications example.
Requirements

Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also

Reference

Printer Class
Printer Members

 

 


Products | Support | Contact Us | Copyright Notices

© 2006-2012 All Rights Reserved. LEAD Technologies, Inc.

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