Hello
I have a class DataModel with a name, an image and a property Children containing a list of DataModel.
In my template Word, I want to display the image of each child. I am using a mailmerge (ExecuteNestedGroup) to do that.
If the property Image of the child returns a value, the image is well displayed. But, if the child does not have an image and the property Image returns null (if it is a System.Drawing.Image) or "" (if it is a string), the field is filled with the Image of the parent.
I don't want this behaviour. If my child does not have any image, I will just display nothing. What can I do to avoid that ?
I have created a solution to help you understand the problem.
Thanks
Attachment:
ChildFieldWithParentValue_8b4e8c18.zip