VintaSoft Twain .NET SDK Discussions
Questions, comments and suggestions concerning VintaSoft Twain .NET SDK.
Board index < VintaSoft Twain < VintaSoft Twain .NET SDK Discussions
I want to know, how I upload the multiple pages with ADF scanner?Your code has logical mistake, here is correct code:
Dim oImageMemoryStream as memorystream If bFirstImage Then oImageMemoryStream = VSTwain.GetImageAsStream(0, ImageFileFormat.TIFF) bFirstImage = False Else VSTwain.SaveImageToStream(0, oImageMemoryStream, ImageFileFormat.TIFF) ' Next line of code is not necessary because it removes previously saved images ' oImageMemoryStream = VSTwain.GetImageAsStream(0, ImageFileFormat.TIFF) End If
How I detect whether the Scanner is FLATBED or ADF?Please read description of the FlatbedPresent and FeederPresent properties in the documentation.
And How I create a single TIFF file, if I scanned 100 pages?Please read the description of the SaveImage method and see this FAQ:
I get the first image scanned correctly, but the second image is the copy of first image.What value of the MaxImages property do you use?
If bFirstImage Then oImageMemoryStream = VSTwain.GetImageAsStream(VSTwain1.NumImages - 1, ImageFileFormat.TIFF) bFirstImage = False Else VSTwain.SaveImageToStream(VSTwain1.NumImages - 1, oImageMemoryStream, ImageFileFormat.TIFF) End If