Handling Template Files
Template files are used to store capability information for a specific TWAIN source. That way, the next time that TWAIN source is used; the corresponding template file can provide information on the capabilities used previously.
LEADTOOLS provides the following for working with template files:
- The TwainSession.ShowTemplateDialog method displays the scanning dialog provided by the manufacturer of the TWAIN source without actually acquiring the images. Instead, it gets the values of all supported capabilities, which will be saved to the specified template file.
- To get all the supported capability values set by the selected TWAIN source and save them to the specified file, call the TwainSession.SaveTemplateFile method. This allows the user to change the value.
- To load the TWAIN capability values stored in the specified template file and set the selected TWAIN source using these values, call the TwainSession.LoadTemplateFile method. This allows the user to change the value.