LEADTOOLS Forms (Leadtools.Forms.Auto assembly)
LEAD Technologies, Inc

DiskMasterFormsRepository Class






Members 
Implements the IMasterFormsRepository interface for Master Forms stored on local disk.
Object Model
DiskMasterFormsRepository ClassIMasterFormsCategory Interface
Syntax
public class DiskMasterFormsRepository : IMasterFormsRepository  
'Declaration
 
Public Class DiskMasterFormsRepository 
   Implements IMasterFormsRepository 
'Usage
 
Dim instance As DiskMasterFormsRepository
public sealed class DiskMasterFormsRepository : IMasterFormsRepository  
function Leadtools.Forms.Auto.DiskMasterFormsRepository()
public ref class DiskMasterFormsRepository : public IMasterFormsRepository  
Remarks

This class is the LEADTOOLS implementation for the IMasterFormsRepository interface for Master Forms stored on the local disk. You can create your own custom implementation in case your storage requirements are different.

The source code of this interface implementation class is available at <Install Directory>\Examples\DotNet\CS\AutoMasterFormsRepository.

This implementation assumes that Master Forms are stored inside directories, each directory represent a category, the repository is the top directory that contains all Master Forms and their directories. Each Master Form has three files (one mandatory and two optional). The mandatory file is the attributes file stored using the Master Form with extension ".bin". The first optional file is Processing fields file, it is needed if the Master Form has fields to be processed and it is stored using the Master Form name with extension ".xml". The second optional file is the image file, it is stored using the Master Form file name with extension ".tif" usually images are stored as 1-bit black and white.

DiskMasterFormsRepository will have the Master Forms and Categories organized in the same way that they are stored on the local disk. If any modification is done to the local disk such as adding/deleting file and categories without using Leadtools.Forms.Auto, Refresh should be called to reflect these change to the IMasterFormsRepository object.

Example
For an example, refer to AutoFormsEngine.Run(RasterImage form, PageRequestCallback pageRequestCallback, Object userData, List<IMasterFormsCategory>).
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

DiskMasterFormsRepository Members
Leadtools.Forms.Auto Namespace

 

 


Products | Support | Contact Us | Copyright Notices

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

Leadtools.Forms requires a Forms Module license and unlock key. For more information, refer to: Imaging Pro/Document/Medical Features