>Hello.
>
>I'm writing text to a word document using these sentences:
>
>objWDdoc=CREATEOBJECT("word.document")
>objWDdoc.content.InsertAfter("Some Text")
>
>How can I add Courier New and Bold text to some part of the document ?
>
>Thank you.
>
>c.x.
It will be something like this:
oWord=CREATEOBJECT('Word.Application')
oWord.Documents.Add
oWord.Visible=.t.
oWord.documents(1).Content.InsertAfter('Some Text')
oWord.documents(1).paragraphs(1).range.Font.name='Courier New'
oWord.documents(1).paragraphs(1).range.Font.bold=.t.
Edward Pikman
Independent Consultant