LoadTemplateEvent2 Example for Visual Basic

Public WithEvents RasterTwain As LEADRasterTwain
Private Sub Command2_Click()
   RasterTwain.EnableLoadTemplateEvent = True
   
   RasterTwain.LoadTemplate "c:\test.ltt"
End Sub

Private Sub RasterTwain_LoadTemplateEvent2(ByVal pCapability As LTRASTERTWAINLib.ILEADTwainCapability)
   ' ...
   ' ...
   ' set your code here
   ' ...
End Sub