Item.Transfer method

Retrieves an ImageFile object from an imaging device.

Syntax

pvResult = .Transfer( _
  [ ByVal FormatID As BSTR ] _
) As HRESULT

Parameters

FormatID [in, optional]

Type: BSTR

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

Value Meaning
{00000000-0000-0000-0000-000000000000}
Default. Unspecified format.

Return value

Type: VARIANT*

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 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.

Requirements

Minimum supported client
Windows Vista [desktop apps only]
Minimum supported server
Windows Server 2003 R2 [desktop apps only]
Header
Wiaaut.h
IDL
Wiaaut.idl

See also

Reference

ShowAcquireImage

ShowTransfer

FormatID

Item