Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Word Automation - Page Headers
Message
From
12/11/2002 10:55:55
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
COM/DCOM and OLE Automation
Title:
Word Automation - Page Headers
Miscellaneous
Thread ID:
00721633
Message ID:
00721633
Views:
62
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
Next
Reply
Map
View

Click here to load this message in the networking platform