Index
Getting String Version Of EDI File
After calling the GenerateFile() method to create an EDI file you can get a string containing the EDI file. This feature should not be used when generating very large EDI files. The length of the string is restricted by the size of the string data type. Under most circumstances the string will hold the entire EDI file.
Example
EDIDocument ediDocument = new EDIDocument();
// Generate the EDI file
ediDocument.GenerateFile();
// Display the EDI file just created using the EDIFileString
MessageBox.Show(ediDocument.EDIFileString);
You don’t need to actually generate an EDI file on the file system to actually get EDI data. Instead you can call the GenerateEDIData() method of the EDIDocument. This method returns a string containing the newly created EDI file data as a string.