AddCapabilityToFile method (Twain Control)

C++ Builder example

Delphi 4.0 example

 

Builder Syntax

int AddCapabilityToFile(HTWAINTEMPLATEFILE hFile, pTW_CAPABILITY pCapability);

Delphi Syntax

Function AddCapabilityToFile (hFile: HTWAINTEMPLATEFILE; pCapability: pTW_CAPABILITY ): L_INT;

Overview

Refer to Handling Template Files.

Remarks

Adds a capability to a file.

In order to add a capability to a template file, the template file must first be opened for writing using the OpenTemplateFile method. Opening the file for writing will create a new empty file. The process of adding capabilities to the file will add them sequentially. When all capabilities have been added, save the file by calling CloseTemplateFile. For more information on capabilities, refer to Getting and Setting Capabilities.

For more information on Template files, refer to Handling Template Files.

See Also

Elements:

OpenTemplateFile method, ShowTemplateDlg method, GetCapabilityFromFile method, GetNumOfCapsInFile method, CloseTemplateFile method, InitSession method, EndSession method.

Topics:

TWAIN Functionality: Capabilities.