SaveTemplateEvent2 Example for Visual Basic

Dim WithEvents RasterTwain As LEADRasterTwain_U

Private Sub RasterTwain_SaveTemplateEvent2(ByVal pCapability As LTRASTERTWAINLib_U.ILEADTwainCapability_U)
	' ...
	' ...
	' set your code here
	' ...
End Sub

Private Sub TwainAcquire_Click()
	Set RasterTwain = New LEADRasterTwain_U
	RasterTwain.InitSession hWnd
	RasterTwain.SelectSource
	RasterTwain.EnableSaveTemplateEvent = True
	RasterTwain.SaveTemplate "c:\test.ltt"
End Sub