Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Word Automation - Page Headers
Message
De
12/11/2002 10:55:55
 
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
COM/DCOM et OLE Automation
Titre:
Word Automation - Page Headers
Divers
Thread ID:
00721633
Message ID:
00721633
Vues:
63
I am using the following code to add a header to my document.
This works fine. However, I wish for this header to appear only on the first page of the document. I tried setting the DIFFERENTFIRSTPAGEHEADERFOOTER property to .t. and that made a difference except that it left the header off of the first page and put it on the subsequent pages. I want it to be just the opposite. Any ideas ?


WITH oDoc.Sections.Last.Headers[wdHeaderFooterPrimary]
.LinkToPrevious = .f.
oHeaderRange = .Range()
oHeaderRange.Text = ''
oShape = oDoc.InlineShapes.AddPicture(ALLTRIM(sysvals.csr_logo),.f.,.t.,oHeaderRange)
oShape.Height=sysvals.logo_h
oShape.Width=sysvals.logo_w
oHeaderRange.ParagraphFormat.Alignment=wdAlignParagraphLeft
oHeaderRange.Collapse(wdCollapseEnd)
ENDWITH
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform