Document Scanning

How do I set up my scanner [Epson ES-400II] to scan documents directly to the AP Invoice I am entering?

I know I can scan the document and then attach it to the invoice after entering the invoice, but I want to scan it directly into Sage as part of the invoice entry process.