Article: Getting Raw EDI Data After Validation

Index

Getting Raw EDI Data After Validation

EDIValidator allows you to retrieve the raw EDI file data after validation. The raw EDI data is placed in an array. Each index represents one line from the EDI file. EDIValidator has this data available through the EDIFileLines property. This value will only be populated when the EDISource is EDISource.DataString.

Example

EDIValidator ediValidator = new EDIValidator();




// Validate an EDI file
ediValidator.Validate();

// Retrieve the raw EDI data
foreach(string ediLine in ediValidator.EDIFileLines)
{
   MessageBox.Show(ediLine);
}

Related Articles

Main Categories