LoadTemplateEvent2 Example for Visual Basic

Dim WithEvents RasterTwain As LEADRasterTwain_U

Private Sub RasterTwain_LoadTemplateEvent2(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.EnableLoadTemplateEvent = True
	RasterTwain.LoadTemplate "c:\test.ltt"
End Sub