C# Класс Aspose.Words.Examples.CSharp.Mail_Merge.ApplyCustomLogicToEmptyRegions

Показать файл Открыть проект

Открытые методы

Метод Описание
ExecuteCustomLogicOnEmptyRegions ( Document doc, IFieldMergingCallback handler ) : void

Applies logic defined in the passed handler class to all unused regions in the document. This allows to manually control How unused regions are handled in the document.

ExecuteCustomLogicOnEmptyRegions ( Document doc, IFieldMergingCallback handler, ArrayList regionsList ) : void

Applies logic defined in the passed handler class to specific unused regions in the document as defined in regionsList. This allows to manually control How unused regions are handled in the document.

Run ( ) : void

Приватные методы

Метод Описание
CreateDataRelation ( DataSet dataSet ) : void
CreateDataSourceFromDocumentRegions ( Document doc, ArrayList regionsList ) : DataSet

Returns a DataSet object containing a DataTable for the unmerged regions in the specified document. If regionsList is null all regions found within the document are included. If an ArrayList instance is present The only the regions specified in the list that are found in the document are added.

DisableForeignKeyConstraints ( DataSet dataSet ) : void
GetDataSource ( ) : DataSet

Returns the data used to merge the TestFile document. This dataset purposely contains only rows for the StoreDetails region and only a select few for the child region.

Описание методов

ExecuteCustomLogicOnEmptyRegions() публичный статический Метод

Applies logic defined in the passed handler class to all unused regions in the document. This allows to manually control How unused regions are handled in the document.
public static ExecuteCustomLogicOnEmptyRegions ( Document doc, IFieldMergingCallback handler ) : void
doc Document The document containing unused regions
handler IFieldMergingCallback The handler which implements the IFieldMergingCallback interface and defines the logic to be applied to each unmerged region.
Результат void

ExecuteCustomLogicOnEmptyRegions() публичный статический Метод

Applies logic defined in the passed handler class to specific unused regions in the document as defined in regionsList. This allows to manually control How unused regions are handled in the document.
public static ExecuteCustomLogicOnEmptyRegions ( Document doc, IFieldMergingCallback handler, ArrayList regionsList ) : void
doc Document The document containing unused regions
handler IFieldMergingCallback The handler which implements the IFieldMergingCallback interface and defines the logic to be applied to each unmerged region.
regionsList System.Collections.ArrayList A list of strings corresponding to the region names that are to be handled by the supplied handler class. Other regions encountered will not be handled and are removed automatically.
Результат void

Run() публичный статический Метод

public static Run ( ) : void
Результат void