Example-VB | Example-VC++ |
Returns or sets the destination of the image being scanned.
Ö | Imaging for Windows Professional Edition V1.0, V1.1, and V2.0 |
Ö | Imaging for Windows 95 and 98 |
Ö | Imaging for Windows NT 4.0 |
Image Scan control
object.ScanTo[=value]
Integer (enumerated)
Constant | Setting | Description |
DisplayOnly | 0 (default) | Display the scanned image |
DisplayAndFile | 1 | Display the scanned image and write it to a file |
FileOnly | 2 | Write the scanned image to a file |
DisplayAndUseFileTemplate | 3 | Write the scanned image to a file using a template, and display the image. Note: This option pertains only to files on local/redirected drives, and not to 1.x server documents. |
UseFileTemplateOnly | 4 | Write the scanned image to a file using a template. This option pertains only to files on local/redirected drives, and to 1.x server documents. |
FaxOnly | 5 | Fax the scanned image |
Ensure that the Image Scan control’s Image property is set correctly.
Settings 1, 2, 3, and 4 you cannot write a file directly to an optical disk. You must write to a magnetic drive first, and then copy the file to the optical drive.
Settings 1, 2, and 5 require a file name.
Settings 3 or 4 require that the Image property points to a file template. Image files are then generated and incremented as you scan to them. For example, if you use a template named ‘img’, you must specify a path, such as c:\scan\images\img. The template ‘img’ will generate files named img00001.xxx, img00002.xxx, and so on.
If a valid path is not provided, an error will be returned.
This property interacts with other properties, depending on the value set.