With the second way we will quickly delete all the headers and insert the end of the page content, or insert watermark on Word. var application new .Application () var doc ('word doc file here') object start doc.
DELETE HEADER AND FOOTER IN WORD CODE
Here is my code done only for change of font. Please help to remove a header and footer from the word document and change the font and save the doc. The first way is simpler, but users need to access each Header and Footer to delete each content separately. remove header and footer in word document in c. So you have 2 ways to delete Header and Footer in Word. To remove the stranded references, the code first retrieves a collection of HeaderReference elements, converts the collection to a List, and then loops through the collection, calling the Remove method for each element found. When successful deletion will display the notification interface as shown below. You just need to click Remove All to delete all contents of Header and Footer with the content inserted. Here, select the Headers, Footers, and Watermarks content and click on Inspect below.Īt this point the tool will check all Headers and Footers available in Word. The display interface shows the Document Inspector panel. Since the second page is the even page so its header is.
In the new interface click the Info item and look at the content next to you click on Check for Issues. On the header & footer tools checkmark the Different Odd & Even Pages to remove even page headers. In the Word interface, click the File button or the Office icon with the Word 2007 document. Option 1: Using the Remove header command. There are two ways to remove or delete a header in Microsoft Word. Headers are normally used for titles, page numbers, dates, logos and other essential bits of information.
Method 2: Quickly delete Header and Footer in Word A header is the top margin of a page in Microsoft Word.