ImageGear .NET v25.0 - Updated
AcquireToDoc Method




ImageGear.Twain Assembly > ImageGear.TWAIN Namespace > ImGearTWAIN Class : AcquireToDoc Method
Count of pages to scan. -1 scans all available pages.
Scan multiple pages from a scanner equipped with an Automatic Document Feeder (ADF). Pages are saved to an ImageGear.Core.ImGearDocument.
Syntax
'Declaration
 
Public Function AcquireToDoc( _
   ByVal pageCount As Integer _
) As ImGearDocument
'Usage
 
Dim instance As ImGearTWAIN
Dim pageCount As Integer
Dim value As ImGearDocument
 
value = instance.AcquireToDoc(pageCount)
public ImGearDocument AcquireToDoc( 
   int pageCount
)
public: ImGearDocument* AcquireToDoc( 
   int pageCount
) 
public:
ImGearDocument^ AcquireToDoc( 
   int pageCount
) 

Parameters

pageCount
Count of pages to scan. -1 scans all available pages.

Return Value

An ImageGear.Core.ImGearDocument class containing the scanned images.
Exceptions
ExceptionDescription
Thrown if this method called while a connection with a data source is not open.
Remarks

Prior to calling this method:

See Also

Reference

ImGearTWAIN Class
ImGearTWAIN Members
ImGearDocument Class
OpenSource Method