image\tips.gif Requesting all possible values for a scan parameter

 

For certain parameters, you can request all possible values for a particular parameter by placing "10" in front of the parameter's number when issuing the GetScanParameter transaction. The return value is a comma-delimited string. This works for document size, document orientation, file type, image output, resolution, and media type.

For example, to request a list of all possible page sizes, use the following call:

[GetScanParameter(10310)]

The following string will be returned:

"ANSI A,ANSI B,ANSI C,ANSI D,ANSI E,ISO A4,ISO A3,ISO A2,ISO A0,User 1,User 2,User 3,User 4"

For a list of all the parameters you can request, click Scanning parameters.