General information
Category:
COM/DCOM and OLE Automation
Title:
Multiple text formats in a single MS Word header object
This is the code I'm using to add a Header object to a Word document I'm creating with VFP via automation:
WITH oDoc.Sections[1].Headers[HeaderFooterPrimary]
oRange = .RANGE()
WITH oRange
.TEXT = 'This is the Header Text'
.ParagraphFormat.ALIGNMENT = 1
.FONT.NAME = THISFORM.docheaderfont
.FONT.SIZE = THISFORM.docheaderfontsize
.FONT.BOLD = THISFORM.docheaderbold
.FONT.ITALIC = THISFORM.docheaderitalic
.FONT.Underline = THISFORM.docheaderunderline
ENDWITH
If I wanted to apply different text attributes on different lines, how would I do that?
Thanx,
Charlie
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