LoadTemplate method (ILEADRasterTwain)
short LoadTemplate (BSTR strTemplateFile) | |
Overview |
Refer to Handling Template Files. |
Remarks
Loads the TWAIN capability values stored in the specified template file and sets the selected TWAIN source using these values.
For each capability value loaded by this method, a LoadTemplateEvent event or LoadTemplateEvent2 event fires.
The LoadTemplateEvent2 event will fire only if the EnableLoadTemplateEvent property has been set to TRUE.
The LoadTemplateEvent event is used by the MFC users. It takes as a parameter a pointer to an ICapability interface, which references the capability values loaded from the file.
The LoadTemplateEvent2 event is used by the Visual Basic users. It takes as a parameter a pointer to an ILEADTwainCapability interface, which references the capability values loaded from the file.
For more information on template files, refer to Handling Template Files.
See Also