TWAIN ActiveX Control, Plug-in, Scanner SDK, Component, HTTP Control/SDK

Dynamsoft TWAIN Products

Support Community for TWAIN Control/Component/SDK for Scanning Solutions
* Login   * Register
* FAQ    * Search

It is currently Sun May 20, 2012 4:09 pm




Post new topic Reply to topic  [ 4 posts ] 
Author Message
 Post subject: onposttransfer and OnPostAllTransfers for the same object
PostPosted: Wed Jun 01, 2011 3:57 am 
Offline

Joined: Wed Jun 09, 2010 12:12 am
Posts: 15
I use OnPostAllTransfers and onposttransfer for the same DWT plugin. The event 'onposttransfer ' invokes JS function (DynamicWebTwain_onPostTransfer) to do some refresh operation and the event 'OnPostAllTransfers' triggers DynamicWebTwain2_OnPostAllTransfers() JS function indicates the application that scanning is completed. Scan application turned ADF one, and I scanned 100+ pages continuously , the problem is scan controller contains only the last scanned images. previous 99 images are lost. If I dont use 'onposttransfer' event , things work well. But I had to use this event to send request to servlet to keep the session alive ( We had session time out issue when we scan large number of images)
Please see the code


Quote:
<EMBED
TYPE="Application/DynamicWebTwain-Plugin"
onposttransfer="DynamicWebTwain_onPostTransfer"
OnPostAllTransfers="DynamicWebTwain2_OnPostAllTransfers()"
OnMouseClick="DynamicWebTwain2_OnMouseClick"
id="DynamicWebTwain2"
WIDTH="99%"
HEIGHT="99%"
PLUGINSPAGE="DynamicWebTwain.xpi">
</EMBED>


thanks
Satheesh


Top
 Profile  
 
 Post subject: Re: onposttransfer and OnPostAllTransfers for the same object
PostPosted: Wed Jun 01, 2011 10:52 pm 
Offline
User avatar

Joined: Tue Mar 08, 2005 12:23 am
Posts: 1075
Hi Satheesh,

To better pinpoint the cause of the problem, could you paste your code of onposttransfer here? Meanwhile, please check the following things:

1. MaxImagesInBuffer is set to the maximum number of images can be held in buffer. For instance, if you want to scan maximum 100 images, remember to set the value of the property to 100.
http://www.dynamsoft.com/help/TWAIN/Web ... Buffer.htm

2. Please make sure you didn't do any page refreshment or call the RemoveImage method in onposttransfer.

_________________
Catherine Sea
TWAIN Support Team
TWAIN ActiveX/Plug-in for Web Applications, Scanner COM Control
TWAIN .NET Component/SDK for Desktop Applications

Follow me @Twitter, Facebook
Image


Top
 Profile  
 
 Post subject: Re: onposttransfer and OnPostAllTransfers for the same object
PostPosted: Thu Jun 02, 2011 5:34 am 
Offline

Joined: Wed Jun 09, 2010 12:12 am
Posts: 15
Hi Catherine

Thank you for the prompt reply.
I have solved this issue by resetting MaxImagesInBuffer to 1024. I use DWT 6.0 which do not support 4096 images as you claimed.
But I have Memory not enough error when exporting gray images to servlet. I have 2 Gig RAM. I posted this query as separate question

300-grayscale-images-gives-not-enough-memory-to-perform-oper-t5321.html

Looking for your quick reply
Thanks
Satheesh


Top
 Profile  
 
 Post subject: Re: onposttransfer and OnPostAllTransfers for the same object
PostPosted: Mon Jun 06, 2011 11:22 pm 
Offline
User avatar

Joined: Tue Mar 08, 2005 12:23 am
Posts: 1075
Hi Satheesh,

Glad to hear that the first problem has been solved.

As for the memory not enough error, please find my answers here:
300-grayscale-images-gives-not-enough-memory-to-perform-oper-t5321.html

_________________
Catherine Sea
TWAIN Support Team
TWAIN ActiveX/Plug-in for Web Applications, Scanner COM Control
TWAIN .NET Component/SDK for Desktop Applications

Follow me @Twitter, Facebook
Image


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 4 posts ] 

It is currently Sun May 20, 2012 4:09 pm


Who is online

Users browsing this forum: No registered users and 0 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:
Jump to:  
cron

Copyright © 2010 Dynamsoft Corporation. All Rights Reserved. | Knowledge Base | Source Control Blog