web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Microsoft Dynamics AX (Archived)

Use the printer-scanner to scan documents.

(0) ShareShare
ReportReport
Posted on by

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

I have the same question (0)
  • Verified answer
    Brandon Wiese Profile Picture
    17,788 on at

    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.

  • Community Member Profile Picture
    on at

    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.

    Thanks :)

  • Verified answer
    Brandon Wiese Profile Picture
    17,788 on at

    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.

Helpful resources

Quick Links

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > 🔒一 Microsoft Dynamics AX (Archived)

#1
Martin Dráb Profile Picture

Martin Dráb 4 Most Valuable Professional

#1
Priya_K Profile Picture

Priya_K 4

#3
MyDynamicsNAV Profile Picture

MyDynamicsNAV 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans