in

Archived Data Techniques Forums

Turning off the UI for the C# twain 2005 web example.

Last post 06-02-2009 8:37 AM by mjessop. 4 replies.
Page 1 of 1 (5 items)
Sort Posts: Previous Next
  • 06-01-2009 1:48 PM

    Turning off the UI for the C# twain 2005 web example.

    Is there a way to turn off the user interface in the web sample c# twain version 2005 demo? I know in the vb app allows you to wrtie

    DTI.ImageMan.Twain.UserInterfaces.None. How does this apply to the web app? or can it.

  • 06-01-2009 3:44 PM In reply to

    Re: Turning off the UI for the C# twain 2005 web example.

    Hello,

     

    Sure, you can turn off the scanner UI in the web app as well. Just set that property prior to calling the ScanPage  method.

     

     

    Sean
    Data Techniques Online Support
  • 06-02-2009 6:56 AM In reply to

    Re: Turning off the UI for the C# twain 2005 web example.

    When I set this property it gives me an object error. I put this code in the javascript.  

     twain.UserInterfaces = false;

  • 06-02-2009 7:35 AM In reply to

    Re: Turning off the UI for the C# twain 2005 web example.

    Hi,

    That property isnt a Bool, its a UserInterfaces enumeration. In javascript you'll need to pass the numeric equivalent of the enum value you wish, they are:

    None = 0

    UserInterface = 1

    ModalUserInterface = 2

     

    So you would want:

    twain.UserInterface = 0

     

    Sean
    Data Techniques Online Support
  • 06-02-2009 8:37 AM In reply to

    Re: Turning off the UI for the C# twain 2005 web example.

    Thanks.

Page 1 of 1 (5 items)
Copyright 2009 Data Techniques, Inc. All Rights Reserved.