Welcome Guest! To enable all features, please Login or Register.

Notification

Icon
Error

Options
View
Last Go to last post Unread Go to first unread post
#1 Posted : Tuesday, April 15, 2008 6:41:49 AM(UTC)
Vasu Ram

Groups: Registered
Posts: 6


I am building a twain scan library that will support setting scanner properties in one of the 2 ways listed below.

1. Displaying the manufacturing user interface using ShowTemplateDlg and then following with a LoadTemplate method in order to load the saved settings.

2. Exposing methods to calling apps such as
public void SetRotationAngle(int angle)
{
TwainProperties props;
TwainImageResolutionProperties imageRes;
imageRes.RotationAngle = angle;
props.ImageResolution = imageRes;
twnSession.Properties = props;
}

But, setting the imageResProperties does not get stored in the template file. As a result, when I reload the template file, the imageResProperties settings are lost.
How do I make the 2 approaches work in synch ?.
Saving to template file must reflect on the twainsession imageResProperties and vice versa.

Thanks !
Vasu
 

Try the latest version of LEADTOOLS for free for 60 days by downloading the evaluation: https://www.leadtools.com/downloads

Wanna join the discussion? Login to your LEADTOOLS Support accountor Register a new forum account.

#2 Posted : Wednesday, April 16, 2008 9:06:53 AM(UTC)

Adam Boulad  
Guest

Groups: Guests
Posts: 3,022

Was thanked: 2 time(s) in 2 post(s)


Vasu,


Before I go into the technical details of your
question, I would like to raise the issue of creating a library. The LEADTOOLS
license agreement prohibits using our toolkit to create programming tools. You
are only supposed to use our functions to build one end-user application per toolkit license, not a toolkit. Please clarify this point.
 
#3 Posted : Tuesday, May 6, 2008 10:30:24 AM(UTC)
Vasu Ram

Groups: Registered
Posts: 6


Adam,

I am not creating a twain library that will be used for programming tools. By library, I meant a dll that will isolate our scanner functionality.

Thanks
Vasu
 
#4 Posted : Wednesday, May 7, 2008 6:22:35 AM(UTC)

Adam Boulad  
Guest

Groups: Guests
Posts: 3,022

Was thanked: 2 time(s) in 2 post(s)


Vasu,


When
you run the code to save and load Twain templates, do you get the LoadTemplate and SaveTemplate events triggered for all capabilities?


If yes, you can set the properties for every capability when the event occurs.


For more information please refer to the help topics 'SaveTemplate Event' and 'LoadTemplate Event'.
 
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.

Powered by YAF.NET | YAF.NET © 2003-2024, Yet Another Forum.NET
This page was generated in 0.140 seconds.