Documentation and Requirements
Windows Document Imaging For Clarion
Minimum Requirements:
Overview:
Windows Document Imaging (WDI) is a Clarion DLL that can be linked into your Clarion program. WDI is compatible
with STANDARD or ABC templates.
WDI maintains its own document file management. You simply save each document under a unique key that you provide
to the wdiScan procedure.
Documentation:
WdiSetPath(Path,<UserName>,<ProductCode>,<RegCode>)
This procedure MUST be called before any other imaging procedures. It is used to set the directory to save
all images and the image database files.
- Path - String - Valid path of directory that will contain the image and image database files. The path must
already exist before calling this procedure.
- UserName - String - Registered User Name
- ProductCode - String - Registered Product Code
- RegCode - Long - Registered Registration Code
Pages=WdiScan(Key,Title)
This procedure calls the Twain Scanning Routines. If the KEY exists the image will be scanned over.
- Key - String(30) - Set Key For This Document
- Title - String(40) - Document Description. This is displayed on the Scanner Window.
- Pages - Long - Number of Pages Scanned. If this number is 0, the scan process was cancelled.
Error=WdiDisplay(Key,Title)
This is the main image display procedure. All images are saved to a unique file name that is created when WdiScan
is called.
- Key - String(30) - Key used to save document.
- Title - String(40) - Document Description. This is used as the Image Display Window Title.
- Error - Long - If Error=0 no image was displayed. This is usually due to an incorrect Key. If Error is positive,
this is the actual document number contained in the WDI database.
WdiAbout()
This procedure displays a SPLASH window the the current library version number and build date.