Document Solutions for Word
DS.Documents.Word Assembly / GrapeCity.Documents.Word.Templates Namespace / DataTemplate Class / BatchProcess Method
The action to be invoked after each root data item is processed.
Culture used to format data values. If null, the current culture is used.

In This Topic
    BatchProcess Method
    In This Topic
    Iterates over root items in DataSources, starting with a fresh copy of the document and processing templates separately for each root data item.

    The itemProcessed action is called as each data item is processed. This action can be used to save the current version of the document (containing data only from the current root data item).

    When this method completes, the document is restored to the original state (i.e. it will contain the original template tags rather than data values).

    Syntax
    'Declaration
     
    Public Sub BatchProcess( _
       ByVal itemProcessed As System.Action, _
       Optional ByVal cultureInfo As System.Globalization.CultureInfo _
    ) 
    public void BatchProcess( 
       System.Action itemProcessed,
       System.Globalization.CultureInfo cultureInfo
    )

    Parameters

    itemProcessed
    The action to be invoked after each root data item is processed.
    cultureInfo
    Culture used to format data values. If null, the current culture is used.
    See Also