Transfer Method

Retrieves an ImageFile object from an imaging device.

Syntax

  object.Transfer( _
    [FormatID As String]) As Variant

Parameters

  • FormatID
    Optional. String value that specifies one of the FormatID Constants that indicates the requested image format.

    • {00000000-0000-0000-0000-000000000000}
      Default. Unspecified format.

Return Value

Returns an ImageFile object in the format specified in FormatID, if the device supports that format; otherwise this method uses the preferred format for this imaging device.

Remarks

Transfer is essentially a version of ShowTransfer that does not display a user interface (UI) or allow the user to cancel the transfer.

For example code, see Implement a Windows Script Host Script that Runs Automatically in Shared Samples.

Method Information

Minimum operating systems Windows XP SP1

See Also

ShowAcquireImage, ShowTransfer, FormatID, Item