Hi,
I need to change the cell background depending upon the value inserted into word document. I use mail merge to insert the data from dataset into word table. I need a way to apply the formatting while a calling the mail merge function.
Code template:
void IFieldMergingCallback.FieldMerging(FieldMergingArgs args)
{
if (args.FieldName.Equals("a"))
{
// Code to access cell and change its format.
}
}
Please provide me suggestions to solve this problem. Thank You.
Regards,
Aniket