Send comments on this topic. | Back to Introduction - All Topics | Help Version 16.5.9.25
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.