LoadTemplate method (ILEADRasterTwain)

Visual Basic Example

Visual C++ 5.0 Example

 

Syntax

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

Elements

ManName property, ProdFamily property, Version property, AppName property, SourceCount property, SourceName property, CapsCount property, Capability property, InitSession method, EndSession method, SelectSource method, SetCapability method, GetCapability method, QueryCapability method, Acquire method, ShowTemplateDlg method, SaveTemplate method, FileTransferName property, MemBufSize property, LoadTemplateEvent event, LoadTemplateEvent2 event

Topics

TWAIN Functionality: Template Functions