See Also Examples Applies To
Sets the current paper size.
Syntax
object.TwainSetPaperSize (nSize)
The TwainSetPaperSize syntax has these parts:
| Part | Description |
| object | Required. An object expression that evaluates to an object in the Applies To list. |
| nSize |
Required. Long. Can be: NONE = 0 A4LETTER = 1 B5LETTER = 2 USLETTER = 3 USLEGAL = 4 A5 = 5 B4 = 6 B6 = 7 USLEDGER = 9 USEXECUTIVE = 10 A3 = 11 B3 = 12 A6 = 13 C4 = 14 C5 = 15 C6 = 16 A04 = 17 A02 = 18 A0 = 19 A1 = 20 A2 = 21 A4 = 1 A7 = 22 A8 = 23 A9 = 24 A10 = 25 ISOB0 = 26 ISOB1 = 27 ISOB2 = 28 ISOB3 = 12 ISOB4 = 6 ISOB5 = 29 ISOB6 = 7 ISOB7 = 30 ISOB8 = 31 ISOB9 = 32 ISOB10 = 33 JISB0 = 34 JISB1 = 35 JISB2 = 36 JISB3 = 37 JISB4 = 38 JISB5 = 2 JISB6 = 39 JISB7 = 40 JISB8 = 41 JISB9 = 42 JISB10 = 43 C0 = 44 C1 = 45 C2 = 46 C3 = 47 C7 = 48 C8 = 49 C9 = 50 C10 = 51 USSTATEMENT = 52 BUSINESSCARD = 53 |
Returns
Boolean. True if success, else False -> Use TwainGetLastResultCode() and TwainGetLastConditionCode() functions for diagnosing the error.
Remarks
Before using this function check that the TWAIN state is 4 (TWAIN_SOURCE_OPEN)
To get the TWAIN state, use the TwainGetState() function.
NONE (0) indicates that the maximum image size supported by the device is to be used.
Category
TWAIN Functions