Page 1 of 1

Example with TwainSetConfig?

Posted: Thu May 04, 2017 11:40 am
by JocPihl
Hi!

I want to use the new TwainSetConfig javascript function. But can't get it to work! The twain driver setting UI is not supressed. Can you give me an example? My function looks like this:

Code: Select all

$("#captureStartBatchButton").click(function () {
        console.log("Setting Twain configs...");
        DocuViewareAPI.TwainSetConfig("DocuVieware1", true, true, 300, 24, false, true);
       
        var e = document.getElementById('DocuVieware1');
        if (e) {
            e.control.TwainAcquisitionDialog_Click();
        }

    });

Re: Example with TwainSetConfig?

Posted: Thu May 04, 2017 5:22 pm
by Cedric
Did you set your DocuVieware instance TwainSourceEnableCustomConfiguration property to true?
If not (and because it's False by default), it is ignored.