1. Open the Word document you want to insert file name or path into its header or footer, then click Kutools > Insert File Information. See screenshot:2. In the opening Insert File Information dialog, select File name or File path in the Type section as you need, choose a position to...
Now that we have a document we need to insert the field for the file name in the footer. To do that, we first create a Range object that encompasses the first footer in the first section of the document (which, for a brand-new document, will also be theonlyfooter in ...
For example, you can place the file name and path of your document in the header or footer by inserting the FILENAME field. The syntax for the FILENAME field code with the path that is included looks like this:{ FILENAME \p }
FooterDistance、 SectionStart、 OddAndEvenPages、 DifferentFirstPage, Endnotes, LineNum, StartingNum, FromText, CountBy, NumMode, TwoOnOne, GutterPosition, LayoutMode, CharsLine, LinesPage, CharPitch, LinePitch, DocFontName, DocFontSize, PageColumns, TextFlow, FirstPageOnLeft, SectionType, RTLAli...
FrameName FrameProperties FrameScrollbarVisibilityValues Frameset FramesetSplitbar FrameSize Gallery GlossaryDocument GridAfter GridBefore GridColumn GridSpan GrowAutofit GutterAtTop GutterOnRight Header HeaderFooterReferenceType HeaderFooterType HeaderFooterValues HeaderReference HeaderShapeDefaults HeaderS...
"Footer" | "Caption" | "FootnoteReference" | "EndnoteReference" | "EndnoteText" | "Title" | "Subtitle" | "Hyperlink" | "Strong" | "Emphasis" | "NoSpacing" | "ListParagraph" | "Quote" | "IntenseQuote" | "SubtleEmphasis" | "IntenseEmphasis" | "SubtleReference" | "IntenseReference"...
footer of the first section.// Note that the footer is a body object.constmyFooter = mySections.items[0].getFooter(Word.HeaderFooterType.primary);// Queue a command to insert text at the end of the footer.myFooter.insertText("This is a footer.", Word.InsertLocation.end);// Queue a...
FrameName FrameProperties FrameScrollbarVisibilityValues Frameset FramesetSplitbar FrameSize Gallery GlossaryDocument GridAfter GridBefore GridColumn GridSpan GrowAutofit GutterAtTop GutterOnRight Header HeaderFooterReferenceType HeaderFooterType HeaderFooterValues HeaderReference HeaderShapeDefaults HeaderSource Height...
25 insertHeaderAndFooterFirst(section); 26 27 //Save the document 28 document.saveToFile("FirstPageHeaderAndFooter.docx", FileFormat.Docx); 29 } 30 31 private static void insertHeaderAndFooterFirst(Section section) { 32 33 //Get header and footer of the first page 34 ...
wdDialogFilePageSetup 178 Tab、PaperSize、TopMargin、BottomMargin、LeftMargin、RightMargin、Gutter、PageWidth、PageHeight、Orientation、FirstPage、OtherPages、VertAlign、ApplyPropsTo、Default、FacingPages、HeaderDistance、FooterDistance、SectionStart、OddAndEvenPages、DifferentFirstPage、Endnotes、LineNum、StartingNum...