DTWAIN_SetJobControl |
Top Previous Next |
The DTWAIN_SetJobControl function sets the current job control setting.
DTWAIN_BOOL DTWAIN_SetJobControl (
Parameters Source An open TWAIN Source.
JobControl The job control to set
bSetCurrent Determines whether to set the current job control or the default job control
Return Values The return value is TRUE if successful. Otherwise FALSE is returned.
Comments The DTWAIN_SetJobControl function sets the current job control for the Source Source when acquiring a series of images. The JobControl must be one of the Job Control constants. If bSetCurrent is TRUE, the current job control denoted by JobControl is set. If bSetCurrent is FALSE, the default job control is set, and the JobControl argument is ignored. To distinguish between jobs, a job separator sheet containing a patch code can be inserted (please consult your TWAIN driver's manual for information on the patch code sheet).
If calling DTWAIN_AcquireFile or DTWAIN_AcquireFileEx, and the file type to acquire to is a multi-page image file, each job is saved to a separate image file. For example,
Here are the differing job control scenarios concerning number of files created and whether the patch code pages are included:
The names of the files that are generated follow the naming conventions described in DTWAIN_AcquireFile.
TWAIN State Transitions The Source must be in State 4. or higher
Prerequisite Function Call(s)
DTWAIN Source Selection Function
See Also |