Replace Background color

Hi,
If a word document has “Gray” background color, how can I replace it with white background color?
Thanks.

Hello
Thanks for your inquiry. To replace page color you should use the following line of code:

doc.PageColor = Color.White;

Please let me know in case of any issues. I will be glad to help you.
Best regards,