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 Tue May 22, 2012 1:45 am




Post new topic Reply to topic  [ 6 posts ] 
Author Message
 Post subject: Page Size
PostPosted: Tue Apr 08, 2008 1:05 am 
Offline

Joined: Tue Apr 08, 2008 12:49 am
Posts: 3
Hello,

I'm using an ADF to acquire image.
Everything is ok but when I have to set the image size:

Twain->DisableSource();
Twain->SelectSourceByIndex(lbxScanner->ItemIndex);
Twain->OpenSource();

Twain->IfShowUI = false;
Twain->IfDisableSourceAfterAcquire = true;

Twain->PixelType = 1;
Twain->BitDepth = 8;
Twain->Contrast = StrToFloat(tbxContrasto->Text);
Twain->Brightness = StrToFloat(tbxLuminosita->Text);
if (cbxRisoluzione->Text.IsEmpty())
Twain->Resolution = 200;
else
Twain->Resolution = StrToFloat(cbxRisoluzione->Text);


Twain->IfFeederEnabled = true;
if (Twain->IfFeederEnabled)
{
Twain->XferCount = -1;
Twain->IfAutoFeed = true;

if (Twain->IfFeederLoaded == true)
{

if (Twain->Duplex != 0)
{
if (cbxOrigineDoc->Text == "ADF - Fronte-Retro")
Twain->IfDuplexEnabled = true;
else
Twain->IfDuplexEnabled = false;
}

Twain->PageSize = 1;

Twain->AcquireImage();
}
}

C++ Builder says:
"Function call terminated by unhandled exeption"

Thank you for your cooperation.


Top
 Profile  
 
 Post subject:
PostPosted: Tue Apr 08, 2008 7:15 pm 
Offline
User avatar

Joined: Mon Mar 07, 2005 11:11 pm
Posts: 866
I tested the code above and can not reproduce the problem.
Please try using the ErrorString property to get the error message. For more information of this, please refer to:
http://www.dynamictwain.com/help/TWAIN/ ... String.htm

Thanks.

_________________
Robert
TWAIN Support Team
http://www.dynamsoft.com/
TWAIN ActiveX/Plug-in HTTP Control/SDK & TWAIN ActiveX Control, Scanner SDK, Component
Software Configuration Management | SCM Solution


Top
 Profile  
 
 Post subject:
PostPosted: Tue Apr 08, 2008 10:26 pm 
Offline

Joined: Tue Apr 08, 2008 12:49 am
Posts: 3
Hello,

I'm using Dynamic TWAIN and the error message is here below:

"Capability not supported by Source or operation is not supported on capability, or capability had dependencies on other capabilities and cannot be operated upon at this time."


The scanner is for A4 but we are using the ADF of the scanner so the image saved has a size quite bigger then A4, for that reason we have to use the property PageSize.


Top
 Profile  
 
 Post subject:
PostPosted: Tue Apr 08, 2008 11:26 pm 
Offline
User avatar

Joined: Mon Mar 07, 2005 11:11 pm
Posts: 866
I checked the PageSizse Property in different languages and can not reproduce the problem.

The error message means your driver does not support the property. Do you have any other drivers of the scanner? If yes, please try with other drivers to see if it works.

Also, you can use the SetImageLayout method to set the image layout. For more information of this, please refer to:
http://www.dynamictwain.com/help/TWAIN/ ... Layout.htm

Thanks.

_________________
Robert
TWAIN Support Team
http://www.dynamsoft.com/
TWAIN ActiveX/Plug-in HTTP Control/SDK & TWAIN ActiveX Control, Scanner SDK, Component
Software Configuration Management | SCM Solution


Top
 Profile  
 
 Post subject:
PostPosted: Wed Apr 09, 2008 12:17 am 
Offline

Joined: Tue Apr 08, 2008 12:49 am
Posts: 3
Hello,

I tried with another scanner but it's still the same, I tried to scan the image with the scanner's software and I was able to set the page size because I set by the combobox of Espon GT2500 SW the layout "A4(210 x 297 mm)" and it works.
So I think it's strange that the drivers does not support the PageSize.
Otherwise, Could you explain the measure unit to set the image layout, what do you mean with the floating point number?

Thanks a lot


Top
 Profile  
 
 Post subject:
PostPosted: Wed Apr 09, 2008 2:07 am 
Offline
User avatar

Joined: Mon Mar 07, 2005 11:11 pm
Posts: 866
The unit of measure is INCHES. Also, you can use the Unit property to set the unit of measure. For more information of this, please refer to:
http://www.dynamictwain.com/help/TWAIN/prop%20Unit.htm

Thanks.

_________________
Robert
TWAIN Support Team
http://www.dynamsoft.com/
TWAIN ActiveX/Plug-in HTTP Control/SDK & TWAIN ActiveX Control, Scanner SDK, Component
Software Configuration Management | SCM Solution


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

It is currently Tue May 22, 2012 1:45 am


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:  

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