Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Multiple text formats in a single MS Word header object
Message
General information
Forum:
Visual FoxPro
Category:
COM/DCOM and OLE Automation
Title:
Multiple text formats in a single MS Word header object
Miscellaneous
Thread ID:
00545354
Message ID:
00545354
Views:
38
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
Map
View

Click here to load this message in the networking platform