Example with TwainSetConfig?

Discussions about DocuVieware integration in GdPicture.NET.
Post Reply
User avatar
JocPihl
Posts: 4
Joined: Wed Jan 25, 2017 8:35 pm
Contact:

Example with TwainSetConfig?

Post by JocPihl » Thu May 04, 2017 11:40 am

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();
        }

    });
Regards
Jocke Pihlström
Alcom System AB

Cedric
Posts: 259
Joined: Sun Sep 02, 2012 7:30 pm

Re: Example with TwainSetConfig?

Post by Cedric » Thu May 04, 2017 5:22 pm

Did you set your DocuVieware instance TwainSourceEnableCustomConfiguration property to true?
If not (and because it's False by default), it is ignored.

Post Reply

Who is online

Users browsing this forum: Baidu [Spider] and 2 guests