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:26 am




Post new topic Reply to topic  [ 6 posts ] 
Author Message
 Post subject: SourceNameitems
PostPosted: Tue Apr 26, 2005 6:26 pm 
Hi there,

I cannot use SourcenameItems property. Why?

Thanks


Top
  
 
 Post subject:
PostPosted: Tue Apr 26, 2005 9:45 pm 
Offline
User avatar

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

Can you further tell us the specific problem using SourceNameItems property?

_________________
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: SourceNameitems
PostPosted: Thu Apr 28, 2005 11:45 am 
Hi Robert,

Thank you for your response and thank you for this great product.

Here is what I did:

Add activeX control(named Twain1) to the .Net form, then I want to set the specific scanner to Twain1, not default scanner.

I use the example code below to do it, but it says property SourceNameItems not exists:

/************************
Dim lngNum As Long 'For loop.

Twain1.OpenSourceManager

For lngNum = 0 To Twain1.SourceCount - 1
If (Twain1.SourceNameItems(lngNum) = "Specified device name" Then
Twain1.SelectSourceByIndex (lngNum)
End If
Next
************************/

What is wrong with it?

Thanks
Jessica


Top
  
 
 Post subject:
PostPosted: Thu Apr 28, 2005 10:40 pm 
Offline
User avatar

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

The problem is in this line ,
Code:
If (Twain1.SourceNameItems(lngNum) = "Specified device name" Then
   Twain1.SelectSourceByIndex (lngNum)


The correct code should be as below,
Code:
If (Twain1.get_SourceNameItems(lngNum) = "Specified device name"  Then      Twain1.SelectSourceByIndex (lngNum)

:)

_________________
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: SourceNameitems
PostPosted: Fri Apr 29, 2005 11:47 am 
Thank you so much!

jessica


Top
  
 
 Post subject:
PostPosted: Fri Apr 29, 2005 6:06 pm 
Offline
User avatar

Joined: Mon Mar 07, 2005 11:11 pm
Posts: 866
You are welcome. :)

_________________
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:26 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