Notifications
Announcements
No record found.
Hello,
In AX 2009, I need to use the printer-scanner to scan documents.
How can I send command to scan document via dynamics AX?
Need some sample code, please.
Thanks :)
*This post is locked for comments
If I produce some sample code, can you develop that into a solution?
I have found the easiest way to scan from within AX is to use WIA, or more specifically the WIA automation interface built into Windows. While there are some difference between versions of Windows (the most annoying being that duplex acquire is broken in WIA automation on Windows 7 and that it will never be fixed), it is the smallest amount of code that produces a reliable solution.
TWAIN by comparison requires heavy state management, and often is far less reliable especially between different pieces of hardware. TWAIN drivers are notoriously terrible on their support of the standard, and are almost universally buggy.
If you can get Windows to acquire an in-memory image of a document, then writing that to document handling (DocuRef/DocuValue) record is pretty easy.
If you take this approach, the result can be a very slick "one click" scanning solution that attaches the scanned image directly to whatever record you are focused on.
Yes,
I have seen something on WIA.
community.dynamics.com/.../ax-scan-a-document.aspx
but this is the only thing, and something that is not run on computer (windows 8, I persume).
Is there any changes between versions - I didn't find much information about that, and don't know if there are some hotfix or documents about.
If you send me an e-mail address (by private conversation here on the Community website), I'll send you some projects by XPO to get you a leg up. Most of the stuff I have available at my fingertips is not suitable for public posting.
Under review
Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.
As AI tools become more common, we’re introducing a Responsible AI Use…
We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…
These are the community rock stars!
Stay up to date on forum activity by subscribing.
Martin Dráb 4 Most Valuable Professional
Priya_K 4
MyDynamicsNAV 2