Dynamic Web TWAIN: Modifying or removing Loading bars / Icons

Scenario: You would like to remove or edit the following overlay that appears when scanning with Dynamic WebTWAIN:

The style in version 14.x:

 

Solution:

During initialization, scanning, loading  Operation:

    1. Open dynamsoft.webtwain.install.js file
    2. Comment out the following code and add your own customized code
function OnWebTwainPreExecuteCallback(){
// Dynamsoft.WebTwainEnv.OnWebTwainPreExecute();
} 

function OnWebTwainPostExecuteCallback(){
// Dynamsoft.WebTwainEnv.OnWebTwainPostExecute();
}

During Loading/ Downloading Operations:

Set the property IfShowProgressBar to false. Please call the Load/Download methods synchronously, because the progress bar will still appear if you are calling them asynchronously.

 

Is this page helpful?

Leave a Reply