The WIA_DPS_PAGES property contains the current number of pages to acquire from an automatic document feeder.

Property Type: VT_I4

Valid Values: WIA_PROP_RANGE (from zero through the maximum number of pages that the scanner can scan; set to zero [0] to scan continuously.)

Access Rights: Read/write


An application reads the WIA_DPS_PAGES property to determine a document feeder's page capacity. The application also sets this property to the number of pages it is going to scan. The WIA minidriver creates and maintains WIA_DPS_PAGES.

The following table describes the constant that is valid with the WIA_DPS_PAGES property.



The same as setting WIA_PROP_RANGE to zero (0). All pages. Scan continuously until no more documents are fed into the ADF.


Note   If duplex mode is enabled (that is, the WIA_DPS_DOCUMENT_HANDLING_SELECT property is set to FEEDER | DUPLEX), WIA_DPS_PAGES is still equal to the number of pages to scan.

One sheet of paper will automatically contain two pages if DUPLEX is enabled, even if the back side of the page is blank.

If you set WIA_DPS_PAGES to 1, the scanner will process one of the sides of the page. If a scanner is unable to scan only one side of a page while in duplex mode, you should change the WIA_DPS_PAGES value for the Inc member of the WIA_PROPERTY_INFO structure to 2. This value signals to the application that it must request pages in multiples of two. If WIA_DPS_PAGES is zero, the scanner will scan all pages that are currently loaded into the document feeder.




Available for Microsoft Windows XP. For Windows Vista and later, use the identical WIA_IPS_PAGES property.


Wiadef.h (include Wiadef.h)

See also




Send comments about this topic to Microsoft