Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Multiple text formats in a single MS Word header object
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
COM/DCOM et OLE Automation
Titre:
Multiple text formats in a single MS Word header object
Divers
Thread ID:
00545354
Message ID:
00545354
Vues:
41
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
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform