This topic and its replies were posted before the current version of LEADTOOLS was released and may no longer be applicable.
#1
Posted
:
Tuesday, April 15, 2008 6:41:49 AM(UTC)
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
#2
Posted
:
Wednesday, April 16, 2008 9:06:53 AM(UTC)
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)
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)
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.