Set page size using WIA (with scanner)
Posted
by Salvador Sarpi
on Stack Overflow
See other posts from Stack Overflow
or by Salvador Sarpi
Published on 2010-02-11T15:56:28Z
Indexed on
2010/05/17
12:01 UTC
Read the original article
Hit count: 2152
Hello, I'm using WIA to acquire images from a scanner with C#. I can scan the papers, but I can't set up the page size correctly, it always defaults to A4 and I need to use Letter or Legal sometimes.
I tried with the WIA_DPS_PAGE_SIZE property, but when I try to set a value, I always get an error, that the value is out of the interval (tried a lot of possible values).
I wan't to be able to use WIA_DPS_PAGE_SIZE = WIA_PAGE_AUTO (for automatic page size), but I can't find anything on the web related to this.
Does anyone know a solution? thanks!
© Stack Overflow or respective owner