Topics   All   MacOS (Only)   Windows (Only)   Linux (Only, Not)   iOS (Only, Not)  
Components   Crossplatform Mac & Win   Server   Client   Old   Deprecated   Guides   Examples   Videos
New in version: 9.1   9.2   9.3   9.4   9.5   10.0   10.1   10.2   10.3   10.4    Statistic  


Transfers data from the given item to the application.

Component Version macOS Windows Server FileMaker Cloud FileMaker iOS SDK
WIA 6.5 No Yes No No No
MBS( "WIA.Scan"; Item )   More


Parameter Description Example value
Item The item of current device to query.
For a scanner this is typical Flatbed or Feeder.
see WIA.ListItems


Returns OK or error.


Transfers data from the given item to the application.
We normally put the files on successful transfer into temp file and you get paths back from WIA.Image function.

If the document feeder fails to supply an image, the returned path to image file will be empty.


Scan via flatbed:

MBS( "WIA.Scan"; "Flatbed" )

Scan via feeder:

MBS( "WIA.Scan"; "Feeder" )

Scan duplex from document feeder:

# switch on duplex mode
Set Variable [ $r ; Value: MBS( "WIA.SetItemPropertyValue"; "Feeder"; "Document Handling Select"; 4 ) /* 1 = feeder 2 = flatbed 4 = duplex 8 = front first 16 = back first 32 = front only 64 = back only 128 = next page 256 = preferred 512 = auto advance see… ]
# Scan via document Feeder
Set Variable [ $r ; Value: MBS( "WIA.Scan"; "Feeder") ]
# Result can be OK or Cancel and in both cases some images may be there
If [ $r ≠ "OK" ]
    Show Custom Dialog [ "Scan Result" ; $r ]
    Perform Script [ Specified: From list ; “Import Images” ; Parameter: ]
End If

See also

Example Databases

Blog Entries

Release notes

  • Version 8.3
    • Changed WIA.Scan to handle multiple pages better.

Created 28th November 2016, last changed 11st February 2019

WIA.ListItems   -   WIA.SelectDeviceDialog

Feedback: Report problem or ask question.

MBS Xojo blog