Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Word Document Headers - Modifying Font Size
Message
 
À
01/08/2002 15:35:53
Information générale
Forum:
Visual FoxPro
Catégorie:
COM/DCOM et OLE Automation
Divers
Thread ID:
00685178
Message ID:
00685335
Vues:
14
this will work:

with oHeader
*oPageNumber = oHeader.PageNumbers.Add()
*oPageNumber.Alignment = wdAlignPageNumberRight
oHeaderRange = oHeader.Range()
with oHeaderRange

.Font.Name = "Arial"
.Font.Size = 20
.Font.Bold = 1
.ParagraphFormat.Alignment = wdAlignParagraphCenter
.InsertAfter("TOP ROW IN HEADER")

.Collapse(wdCollapseEnd)
.end=oheaderrange.end + 1
.InsertAfter(CHR(13))
.Font.Size = 10
.InsertAfter("Middle Row in Header")

.Collapse(wdCollapseEnd)
.end=oheaderrange.end + 1
.InsertAfter(Chr(13))
.Font.Size = 8
.InsertAfter(dtoc(date()))
endwith
endwith
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform