ImageGear Professional for Windows ActiveX
AcquireToFile Method

Description:

Scans multiple pages from a scanner equipped with an Automatic Document Feeder (ADF).

If FileName specifies only a directory but not a file name, a separate file for each page will be created, using the names 00000001.tif, 00000002.tif, 00000003.tif, etc. If those files already exist, they will be deleted before being scanned into.

If FileName specifies a filename and SavePagesSeparately is set to True, a separate file for each page will be created, but will use part of the name that you supplied. If the name you supplied was "ScanTest.bmp", your pages will be named as follows: ScanTest1.bmp, ScanTest2.bmp, ScanTest3.bmp ... ScanTest10.bmp, ScanTest11.bmp, etc. If these files already exist, they will be deleted before being scanned into.

If SavePagesSeparately is False and FileFormat is set to a format type that supports multiple pages, such as TIFF, DCX, or MO:DCA, the images are stored in one file identified by the FileName parameter.

Use SelectDriver Method to select the desired ISIS driver, and UpdateTagValueFrom Method to set desired tag values, prior to calling this method.

Syntax:

AcquireToFile (FileName As String, NumPages As Long, FileFormat
As enumIGSaveFormats, SavePagesSeparately As Boolean)

Parameters:

Name Description
FileName The name of the file to scan to.
NumPages The number of pages to scan. Setting number of pages to -1 results in acquiring all the available pages.
FileFormat The format of the file to scan to.
SavePagesSeparately Specifies if the images are to be stored in separate files.

Return Value:

None

 

 


©2016. Accusoft Corporation. All Rights Reserved.

Send Feedback