This method loads the TWAIN DLL.
[Visual Basic] [ Boolean
=
]imagekitcontrolname.Scan.LoadTwain(FileName
As String)
[Visual C++] [
BOOL =
]imagekitcontrolname.GetScan().FreeTwain(LPCTSTR
FileName)
Parameters
Name | Explanation |
---|---|
FileName | The filename (full path) to the TWAIN DLL |
Return Value
Returns True (nonzero) when successful, returns False (0) when not successful.
Explanation
The LoadTwain method loads the TWAIN DLL. When using the 32 bit OCX and also using the twain_32.dll (found in Windows folder) or when using the 64 bit OCX and using the TWAINDSM.dll (found in Windows\System32 folder), it is not necessary to execute this method. The ImageKit will automatically load these dlls internally.
When using the 32 bit OCX with the 32 bit TWAINDSM.dll, please execute this method.
Before executing LoadTwain, be sure to execute the Initialize method.