Resources Base
Table of contents

Development

How to exclude WIA sources in the source list?

Applicable to Windows only

There are two ways to achieve this:

Way 1. Set IfUseTwainDSM to true

DWObject.IfUseTwainDSM = true;

Way 2. Filter sources before listing them

var sources = DWObject.GetSourceNames();
for (var i = 0; i < sources.length; i++) {
    if (sources[i].toLowerCase().indexOf('epson') != -1) {
        sources.splice(i, 1);
    }
}

Is this page helpful?

YesYes NoNo

In this article:

latest version

    • Latest Version
    • Version 17.0
    • Version 16.2
    • Version 16.1.1
    Change +
    © 2003–2021 Dynamsoft. All rights reserved.
    Privacy Statement / Site Map / Home / Purchase / Support