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 2:41 am




Post new topic Reply to topic  [ 6 posts ] 
Author Message
 Post subject: The problem in Visual Studio 2005
PostPosted: Sun Feb 24, 2008 1:16 am 
Offline

Joined: Sat Feb 23, 2008 11:25 pm
Posts: 3
I have a problem when I use Dynamic Twain.
I write a windows application with C# language in Visual Studio 2005. There are two forms in this application. One is “MainForm???that shown at the start time. The other is “ScanForm???that uses Dynamic Twain to acquire image from scanner.

[MainForm Code]
public partial class MainForm : Form
{
private ScanForm m_ScanForm;

public MainForm()
{
InitializeComponent();
m_ScanForm = new ScanForm();
}

// A button handler to show Scan Form
private void Ctrl_Show_Click(object sender, EventArgs e)
{
m_ScanForm.ShowDialog();
}

}

[ScanForm Code]
public partial class ScanForm : Form
{
public ScanForm()
{
InitializeComponent();
Twain.IfThrowException = true;
}

// A button handler to acquire image
private void Ctrl_Scan_Click(object sender, EventArgs e)
{
bool bOK = Twain.AcquireImage();
if (!bOK)
MessageBox.Show(Twain.ErrorString);
}
}

Start the application and click MainForm’s button to show ScanForm, and then click ScanForm’s button to acquire image. The source’s UI is displayed, and then close the UI and ScanForm.
Click MainForm’s button to show ScanForm again. At this time, when click ScanForm’s button to acquire image, the source’s UI can’t be displayed. An exception (System.Runtime.InteropServices.COMException) is thrown.
When disable Twain.IfThrowException, the message of “Capability not supported by source???is displayed.


Top
 Profile  
 
 Post subject:
PostPosted: Sun Feb 24, 2008 6:27 pm 
Offline
User avatar

Joined: Mon Mar 07, 2005 11:11 pm
Posts: 866
Hi Sunmoon,

We need to test your code to find the cause of this issue. Would you please send your project to TWAINsupport@dynamsoft.com? Our support team will check the code for you.

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: Sun Feb 24, 2008 9:21 pm 
Offline

Joined: Sat Feb 23, 2008 11:25 pm
Posts: 3
Hi Robert,

I have send my project to TWAINsupport@dynamsoft.com.

I expect your answer.

Thanks.


Top
 Profile  
 
 Post subject:
PostPosted: Mon Feb 25, 2008 9:46 pm 
Offline
User avatar

Joined: Mon Mar 07, 2005 11:11 pm
Posts: 866
Our support team has sent you the modified code. Please test it and let me know if it works for you.

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 Feb 27, 2008 10:29 pm 
Offline

Joined: Sat Feb 23, 2008 11:25 pm
Posts: 3
I will modify my project with your suggested method.

Thank for your help.


Top
 Profile  
 
 Post subject:
PostPosted: Thu Feb 28, 2008 5:33 pm 
Offline
User avatar

Joined: Mon Mar 07, 2005 11:11 pm
Posts: 866
:)

_________________
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 2:41 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:  
cron

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