General information
Category:
COM/DCOM and OLE Automation
Your suggestion was right on. However, (isn't there always a however) I now find that using the following code causes the header on the first page to revert back to the header for the entire section. Actually, the line referring to ShowFirstPageNumber=.t. is the culprit. Everything is fine if I comment that line out. Any words of wisdom on this ?
oWord.ActiveDocument.Sections[1].Footers[1].PageNumbers.Add()
oWord.ActiveDocument.Sections[1].Footers[1].PageNumbers.ShowFirstPageNumber=.t.
oWord.ActiveDocument.Sections[1].Footers[1].PageNumbers[1].Alignment=wdAlignPageNumberCenter
Previous
Next
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only