General information
Category:
Coding, syntax & commands
>OWord = CreateObject("word.basic.8")
>OWord.FileNew()
>OWord.Insert("This is the non-bolded text")
>OWord.selection.font.bold = .T.
>OWord.Insert("This is the bolded text")
Hi Ben,
In Word 97, you do not need to use Word.Basic - which is somewhat kludgy. Rather, Word 97 finally has a real object model. Try this instead
oWord = CreateObject("word.application")
oword.visible = .t.
oWord.Documents.Add
With oWord.Selection
.Font.Bold = .T.
.TypeText("This is bolded text")
.TypeParagraph
.Font.Bold = .F.
.TypeText("this is non-bolded text")
.TypeParagraph
EndWith
Previous
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