Function TWPSuperMerge.PrepocessFields(FieldName:string; WithUndo:Boolean; MergeEvent:TWPMailMergeGetTextEvent; CheckField:TWPMailMergeUseFieldCallback) : Integer

Unit: WPRTEReport
Class: WPRTEReport.TWPSuperMerge

Parameters

  • FieldName:string
  • WithUndo:Boolean
  • MergeEvent:TWPMailMergeGetTextEvent
  • CheckField:TWPMailMergeUseFieldCallback

Returns

The type of the result value is Integer.

Description

This function calls the standard or the provide merge event for all fields which use the given name. The name my contain one * as wildcard. In the merge event it is possible to load sub templates using the Contents.LoadTemplate method.