Adding Fast Loops

Index

    Adding Fast Loops

    Creating loops is necessary for creating any EDI file.  RDP Crystal EDI Library enables you to create a loop very quickly and save a lot of type in the long run.

    Example

    // Instantiate an instance of EDIDocument and set the name of the file to be created
    EDIDocument sampleEDIFile = new EDIDocument(“C:\\My837EDIFile.txt”);

    // Create an interchange loop. This loop will contain all other loops in the EDI structure
    Loop interchangeHeaderLoop = “Interchange Header”;  //NOTICE: The “Interchange Header” loop is automatically constructed

    // Add the interchange loop to the EDI document
    sampleEDIFile.Loops.Add(interchangeHeaderLoop);

    // Generate the EDI file
    sampleEDIFile.GenerateEDIFile();

    in EDI Document
    Did this article answer your question?