LoadTemplate Example for C++ 5.0 and later
ILEADRasterTwain * pltRasTwain;
CString strTemplateFile = TEXT("");
CFileDialog TemplateFile (FALSE, TEXT("ltt"), NULL, OFN_CREATEPROMPT, TEXT("Template Files (*.ltt)|*.ltt|All Files (*.*)|*.*||"));
if (TemplateFile.DoModal() == IDOK)
{
strTemplateFile = TemplateFile.GetPathName();
pltRasTwain->LoadTemplate(strTemplateFile.AllocSysString());
}