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 Sun May 20, 2012 3:56 pm




Post new topic Reply to topic  [ 6 posts ] 
Author Message
 Post subject: multipage tiff
PostPosted: Tue Apr 05, 2005 9:41 am 
How can i get a multipage tiff (directly) in VB.net
I try something like that:

twain.SelectSourceByIndex(lstSources.SelectedIndex)

twain.OpenSource()
twain.IfTiffMultiPage = True
twain.IfShowUI = False
twain.EnableSource()

twain.AcquireImage()

Didn't works. What do I wrong?


Top
  
 
 Post subject:
PostPosted: Tue Apr 05, 2005 6:40 pm 
Offline
User avatar

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

Here is a sample of multipage tiff for your reference:

Private Sub btnAcquire_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnAcquire.Click
Twain.SelectSourceByIndex(lstSources.SelectedIndex)
Twain.OpenSource()
Twain.IfTiffMultiPage = True
Twain.IfShowUI = False
Twain.IfDisableSourceAfterAcquire = True
Twain.EnableSource()
End Sub

Private Sub Twain_OnPostTransfer(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Twain.OnPostTransfer
Twain.SaveAsTiff("c:\\twaintiff.tif")
End Sub

_________________
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: multipage tiff
PostPosted: Wed Apr 06, 2005 4:13 am 
Hi Robert,

sorry but i have to ask again.

I do what you write. Scanner feeds now 2 piece of paper but the
tiff is empty.

Btw. my programm should show the pic. So I have a statement:
picImageAcquired.Image = twain.Picture instead of
twain.SaveAsTiff("twaintiff.tif")
Is this possible to?

But I try booth. With picImageAcquired.Image I see just the last page.

thx
Uwe


Top
  
 
 Post subject:
PostPosted: Thu Apr 07, 2005 4:43 am 
Offline
User avatar

Joined: Mon Mar 07, 2005 11:11 pm
Posts: 866
Which version of Dynamic TWAIN are you using?

This code works for 3.0.1.

_________________
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: multipage tiff
PostPosted: Tue Apr 12, 2005 6:37 am 
Dynamic TWAIN 3.0


Top
  
 
 Post subject:
PostPosted: Wed Apr 13, 2005 4:26 am 
Offline
User avatar

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

The sample we wrote to you works for 3.0.1.

Please download the latest Dynamic TWAIN 3.0.1.

_________________
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 Sun May 20, 2012 3:56 pm


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