Previous Topic: File from IStreamNext Topic: File Pre-Created from IStream


File Pre-Created from Filename

Support introduced in CA DataMinder 4.7

Initialise IWgnImportFileObject by calling InitialiseFile() with:

objectTransport  WGN_IMPORTOBJ_TRANSPORT_FILENAME
objectData       Variant type: VT_BSTR  Full path to file being imported

Import the pre-created file object with:

objectFormat     WGN_IMPORTOBJ_FORMAT_PRECREATED
objectType       WGN_IMPORTOBJ_TYPE_PRECREATED
objectTransport  WGN_IMPORTOBJ_TRANSPORT_COM
objectData       Variant type: VT_UNKNOWN  IUnknown* interface 
                                           from IWgnImportFileObject.