Z
Zoom
Hi,
I want to replace a text "<test>" with "hello" in the word document header
and footer using C#. Below code doesn't do anything. Can someone suggest an
option for it.
app.ActiveDocument.Sections[1].Headers[WdHeaderFooterIndex.wdHeaderFooterPrimary].Range.Find.Text = "<test>";
app.ActiveDocument.Sections[1].Headers[WdHeaderFooterIndex.wdHeaderFooterPrimary].Range.Find.Replacement.Text = "hello";
I want to replace a text "<test>" with "hello" in the word document header
and footer using C#. Below code doesn't do anything. Can someone suggest an
option for it.
app.ActiveDocument.Sections[1].Headers[WdHeaderFooterIndex.wdHeaderFooterPrimary].Range.Find.Text = "<test>";
app.ActiveDocument.Sections[1].Headers[WdHeaderFooterIndex.wdHeaderFooterPrimary].Range.Find.Replacement.Text = "hello";