Leadtools.Twain Namespace > TwainSession Class : Startup2 Method |
public void Startup2( IWin32Window owner, string manufacturer, string productFamily, string version, string application, TwainStartupFlags flags, TwainLanguage language, TwainCountry country )
'Declaration Public Sub Startup2( _ ByVal owner As IWin32Window, _ ByVal manufacturer As String, _ ByVal productFamily As String, _ ByVal version As String, _ ByVal application As String, _ ByVal flags As TwainStartupFlags, _ ByVal language As TwainLanguage, _ ByVal country As TwainCountry _ )
'Usage Dim instance As TwainSession Dim owner As IWin32Window Dim manufacturer As String Dim productFamily As String Dim version As String Dim application As String Dim flags As TwainStartupFlags Dim language As TwainLanguage Dim country As TwainCountry instance.Startup2(owner, manufacturer, productFamily, version, application, flags, language, country)
public: void Startup2( IWin32Window^ owner, String^ manufacturer, String^ productFamily, String^ version, String^ application, TwainStartupFlags flags, TwainLanguage language, TwainCountry country )
Imports Leadtools Imports Leadtools.Twain Public Sub StartupExample2(ByVal parent As IWin32Window) Dim session As TwainSession = New TwainSession() Try session.Startup2(parent, "manufacturer", "productFamily", "version", "application", TwainStartupFlags.None, TwainLanguage.LanguageEnglish, TwainCountry.CountryUsa) Catch ex As Exception MessageBox.Show(ex.Message) End Try session.Shutdown() End Sub
using Leadtools; using Leadtools.Twain; public void Startup2Example(IWin32Window parent) { TwainSession session = new TwainSession(); try { session.Startup2(parent, "manufacturer", "productFamily", "version", "application", TwainStartupFlags.None, TwainLanguage.LanguageEnglish, TwainCountry.CountryUsa); } catch (Exception ex) { MessageBox.Show(ex.Message); } session.Shutdown(); }