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 : Thursday, June 23, 2005 9:25:33 AM(UTC)
beaverye

Groups: Registered
Posts: 1


Hi, dear sir/lady,

 

We are a software company and developing a image scanning software. I tried to run the example from the Lead tool document in the following, and want t o use the default config of the scanner.But I always get a exception when program hit method of theTwain.FindFastConfig(). The exception is : Document Express capability is required to use this method/property. What is reason causing that? Thanks for your help.

 

 

                   //theTwain.Acquire(LEAD.Drawing.Imaging.Twain.Twain.UserInterfaceConstants.None);

theTwain.OnFastConfig += new LEAD.Drawing.Imaging.Twain.Twain.FastConfigDelegate(FindFastConfigEvent);

                   theTwain.EnableFastConfigEvent = true;

                   theTwain.UserFastConfigsCount = 0;

                   theTwain.FindFastConfig(@"c:\Twain", LEAD.Drawing.Imaging.Twain.Twain.UserInterfaceFastConstants.Show, LEAD.Drawing.Imaging.PixelFormatConverter.Convert(1), 0);

 

                   MessageBox.Show("FindFastConfig method was successfull");

                   MessageBox.Show("Result Scan Configs count = " + theTwain.FastConfigsResultCount.ToString());

 

                   MessageBox.Show("Transfer Mode = " + theTwain.FastConfigsResult[0].TransferMode.ToString() + "\n" +

                         "File Format = " + theTwain.FastConfigsResult[0].FileFormat.ToString() + "\n" +

                         "Buffer Size = " + theTwain.FastConfigsResult[0].BufferSize.ToString() + "\n" +

                         "Required Time = " + theTwain.FastConfigsResult[0].RequiredTime.ToString());

 

                   MessageBox.Show("Transfer Mode = " + theTwain.BestFastConfig.TransferMode.ToString() + "\n" +

                         "File Format = " + theTwain.BestFastConfig.FileFormat.ToString() + "\n" +

                         "Buffer Size = " + theTwain.BestFastConfig.BufferSize.ToString() + "\n" +

                        "Required Time = " + theTwain.BestFastConfig.RequiredTime.ToString(), "Result Scan Configurations...");

 

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 : Sunday, June 26, 2005 8:26:49 AM(UTC)

Bashar  
Guest

Groups: Guests
Posts: 3,022

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

You need to call RasterSupport.Unlock Method at the beginning of
your program and pass in the correct unlock key to unlock the Document Imaging features.

Bashar Abdulqaiyume
LEAD Technical Support
 
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.089 seconds.