DTWAIN_SetPaperSize

Top  Previous  Next

The DTWAIN_SetPaperSize function sets the current paper size.

 

DTWAIN_BOOL DTWAIN_SetPaperSize (

DTWAIN_SOURCE

Source,

LONG

PaperSize,

DTWAIN_BOOL

bSetCurrent );

 

Parameters

Source

An open TWAIN Source.

 

PaperSize

The paper size to set

 

bSetCurrent

Determines whether to set the current paper size or use the default paper size.

 

Return Values

The return value is TRUE if successful.  Otherwise FALSE is returned.

 

Comments

The DTWAIN_SetPaperSize function sets the current paper size for the Source Source.  The PaperSize is the paper size to set.  If bSetCurrent is TRUE, the paper size is set to the value specified by PaperSize.  If bSetCurrent is FALSE, the default paper size is set, and the PaperSize argument is ignored.  The value of PaperSize can be any one of the Frame Size Constants

 

TWAIN State Transitions

The Source must be in State 4. or higher

 

Prerequisite Function Call(s)

DTWAIN_SysInitialize

 

DTWAIN Source Selection Function

 

 

See Also

Setting / Getting Frame Sizes