SaveTemplateEvent2 Example for C++ 5.0 and later
void CTwainView::OnTestTemplate()
{
m_pltRasTwain->EnableSaveTemplateEvent = TRUE;
m_pltRasTwain->SaveTemplate("c:\\test.ltt");
}
void CRasterTwainSink::OnSaveTemplate2(ILEADTwainCapability * pCapability)
{
// ...
// ...
// set your code here
// ...
}