Contact us


All times are UTC - 8 hours



   [ 4 posts ] 
Author Message
   


Joined: Fri Sep 22, 2017 11:40 am
Posts: 2
I'm evaluating Dynamic Web TWAIN for possible deployment in an application I support.

I've run into an issue with scanning when I implement the "dwtcontrolContainer" and related scripting within a .ascx UserControl. When the AcquireImage() function is called it is freezing with "Loading..." displayed in the document pane.

When I place the same code within an .aspx page and call AcquireImage() the scanned document is displayed without any issues.

I've checked the ResourcesPath and it is in the same relative location to both the .ascx UserControl and the .aspx page.

Code:
Dynamsoft.WebTwainEnv.ResourcesPath = '../Resources';


My file paths are:

    \root\Resources
    \root\Pages\MyPage.aspx
    \root\Pages\MyPageThatCallsMyControl.aspx
    \root\Controls\MyControl.ascx

Any insight into why it's not working when placed in the .ascx UserControl would be appreciated.


User avatar
   


Joined: Tue Mar 08, 2005 12:23 am
Posts: 1706
Hi MarkAtCortex,

Thanks for contacting Dynamsoft.

May I know if you have a simple sample of your application where we can reproduce the issue?

Regards,

_________________
Vincy
Dynamsoft Support Team
Follow us@Twitter, Facebook


   


Joined: Fri Sep 22, 2017 11:40 am
Posts: 2
Hellow Vincy,

I did some more testing and narrowed the problem down to a conflict with our existing code where we are calling the window.clearTimeout() javascript function. I did a search within the dynamsoft.webtwain.initiate.js file and found that it makes heavy use of setTimeout() and clearTimeout(). Do you have any suggestions on how we might restrict the scope of our clearTimeout() so that it doesn't cause this problem?

Regards,
Mark


User avatar
   


Joined: Tue Mar 08, 2005 12:23 am
Posts: 1706
Hi Mark,

Sorry for the delay.

I checked with the team. It seems there is no other way but to change your clearTimeout() function.

Regards,

_________________
Vincy
Dynamsoft Support Team
Follow us@Twitter, Facebook


Display posts from previous:  Sort by  
   [ 4 posts ] 


Who is online

Users browsing this forum: WillieCam and 2 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
cron
Copyright © 2018 Dynamsoft | All Rights Reserved
dynamic designed by Dynamsoft team
Fatal: Not able to open ./cache/data_global.php