J
Josh Orfanakis
I have a bunch of documents with various date fields in the headers and
footers. I would like to scan for these fields and replace them or
remove them. I have the code which identifies the questionable fields in
the header and footer but I don't see a way to remove them or edit them.
I would like to avoid searching for them in the straight text (from the
range) as the dates or format won't be known.
In case I am way off base here is what I am doing
For each section I get the header and footer. For each header and footer
I look in each type of header footer and get the range for each. In each
range I iterate the fields. If the field is of a certain WdFieldType I
would like to remove it or change the resulting text in the header
footer to the name of the field rather than the meaning of the field.
TIA
JO
footers. I would like to scan for these fields and replace them or
remove them. I have the code which identifies the questionable fields in
the header and footer but I don't see a way to remove them or edit them.
I would like to avoid searching for them in the straight text (from the
range) as the dates or format won't be known.
In case I am way off base here is what I am doing
For each section I get the header and footer. For each header and footer
I look in each type of header footer and get the range for each. In each
range I iterate the fields. If the field is of a certain WdFieldType I
would like to remove it or change the resulting text in the header
footer to the name of the field rather than the meaning of the field.
TIA
JO