Information générale
Catégorie:
COM/DCOM et 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
Sorry, not something I've looked at. Did you check the Knowledge Base?
If all else fails, you can just insert the page number manually rather than using a PageNumbers object.
Tamar
Précédent
Suivant
Répondre
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement