I use INCLUDEPICTURE with MERGEFIELDS in a template.
Example:
{ INCLUDEPICTURE “W: \Pictures\{ MERGEFIELD P_NACHNAME }.{ MERGEFIELD P_VORNAME }.png” }
In WORD the MERGEFIELDS are correctly replaced and the picture is displayed.
Result: { INCLUDEPICTURE “W:\Pictures\Baum.Horst.png” }
Problem:
In Aspose.Words (version 20.4) the MERGEFIELDS are not recognized and are not replaced.
They do not appear in the document.Range.Fields - Collection, nor are they handled in the MergeFieldHandler.