How to set color for a field in a table

Hi,

I want to set color for different value in a table. But as I find that during looping we use the same name for all field. So how to define different color for different value? As the mail merge field name is the same in both row, how to differentiate these two rows field?

E.g.

Row_1 Field_1(blue) Field 2(Green)
Row_2 Field_3(Green) Field 4(blue)

Regards,
Ken Wan

Hi Ken,

Thanks for your inquiry. Maybe you should use MergeField event handler in this case. Please see the following link for more information:
https://reference.aspose.com/words/net/aspose.words.mailmerging/ifieldmergingcallback/
Best regards.