EDI Integrator V9 - Online Help
Available for:
EDI Integrator V9
Questions / Feedback?

StartTransfer Event

Fired when a document starts transferring.

Syntax

[VB.NET]
Public Event OnStartTransfer As OnStartTransferHandler
[C#]
public event OnStartTransferHandler OnStartTransfer;

public delegate void OnStartTransferHandler(object sender, OftpclientStartTransferEventArgs e);

class OftpclientStartTransferEventArgs : EventArgs {
  int Direction {get;}
  string LocalFile {get; set;}
  string VirtualFileName {get;}
  string VirtualFileDate {get;}
  string Destination {get;}
  string Originator {get;}
}

Remarks

The StartTransfer event is fired first when the client starts sending a virtual file to the server and then when a virtual file starts transferring from the server to the local host.

Originator identifies the sender (SFID) code in the send file request.

Destination identifies the receiver (SFID) code in the send file request.

VirtualFileName holds the filename.

VirtualFileDate holds the date associated with the file in the format specified by VirtualFileDateFormat. The default value is "MM/dd/yyyy HH:mm:ss".

The Direction parameter shows whether the client (0) or the server (1) is sending the data.

The component uses the directory specified by DownloadDirectory and the filename from the VirtualFileName parameter as received from the server to generate a LocalFile parameter which contains the name and path to where the file will be written to. If you wish to write this file to another location, you may override this parameter.

 
 
Copyright (c) 2018 /n software inc. - All rights reserved.
Build 9.0.6635.0