Saves the Interconnect Mailbag content to an external file.
Syntax:
Parameters:
Returns
Returns 1 if the operation is successful; otherwise the operation returns zero.
Controlling Agency:
Remarks
The data saved to the file starts with and includes the Interconnect Mailbag Control Header (IH), and ends with and includes the Interconnect Mailbag Control Trailer (IT).
Example
Dim oEdiDoc As ediDocument
Dim oSchema As ediSchema
Dim oInterconnect As ediInterconnectMailbag
Dim sEdiFile As String
Dim sSefFile As String
Dim sOutputFile As StringsEdiFile = App.Path & "\850.X12"
sSefFile = App.Path & "\850.SEF"
sOutputFile = App.Path & "\Interconnect.OUT"Set oEdiDoc = New ediDocument
Set oSchema = oEdiDoc.LoadSchema(sSefFile, 0)oEdiDoc.LoadEdi sEdiFile
' Get Interconnect Mailbag from document
Set oInterconnect = oEdiDoc.FirstInterconnectMailbag' Save Interconnect Mailbag
oInterconnect.Save sOutputFile