I am trying to change the font color of a word document style using office.interop but the color doesn't change. Any idea? here's some code:

Application appWord=new Application();
Document doc=new Document();
ListGallery gallery=appWord.ListGalleries[WdListGalleryType.wdNumberGallery];
ListTemplate template =gallery.ListTemplates[4];
Style style=doc.ListTemplate[2];
style.LinkToListTemplate(template,1);
style.Font.ColorIndex=WdColorIndex=WdBlack;//doesn't work
doc.saveAs2(path);

Related posts

Recent Viewed