The best overloaded method match for 'Microsoft.Office.Interop.Word.headerFooterRakesh Kalluri14yAsked Oct 6, 2012, 1:05 AM2.2k.NETThe best overloaded method match for 'Microsoft.Office.Interop.Word.HeaderFooter' foreach (Microsoft.Office.Interop.Word.Section wdsection in oDoc.Sections){ wdsection.Footers[Word.WdHeaderFooterIndex.wdHeaderFooterPrimary]. Range.Font.ColorIndex = Word.WdColorIndex.wdDarkRed;}
Vulpes14y agoPosted Oct 6, 2012, 12:31 PMAssuming you have this using directive at the top of the file : using Word = Microsoft.Office.Interop.Word;the code looks OK to me and compiled fine when I tried it just now (VS 2010).What is the full error message - you've only posted part of it?0
VulpesPosted Oct 6, 2012, 12:31 PM
using Word = Microsoft.Office.Interop.Word;
the code looks OK to me and compiled fine when I tried it just now (VS 2010).
What is the full error message - you've only posted part of it?