Scanning with C# and WIA
<p>I'm trying to scan A4 pages from a C# application using a flat bed scanner and Windows 10. To speed things up, I use the ScanWIA library found here: <a href="https://scanwia.codeplex.com/" rel="nofollow">https://scanwia.codeplex.com/</a></p>

<p>However, I have huge problems configuring the page settings correctly.</p>

<ul>
<li>Setting the page size (WIA ID 3097) to AUTO, gives me an "property not supported" exception.</li>
<li>Setting horizontal and vertical extend (WIA ID 6151, 6152) gives me either too small (cropped) results or an "value out of range" exception.</li>
</ul>

<p>What is the correct way to set this up for A4 pages and variable DPI settings?
How do I set the size of the captured area correctly?
How do I control the size of the output image?
Which setting uses which unit? What are the maximum value ranges?</p>

<p>MSDN is not very helpful on these topics...</p>