Hi Kevin,
#DEFINE WDPAGEBREAK 7
oWord.Selection.InsertBreak( WDPAGEBREAK)
oWord.Selection.Font.Bold = .T.
José
>Hello,
>
>I am on-site at a customer and I am trying something new out -- finally using automation between word and VFP. Of course I don't have any documentation concerning the commands for certain things and I would rather not wait until next week to look it up -- there is no real pressure from the customer, now I am just interested.
>
>1.) How do you underline and bold something, as in:
>oword.selection.insertafter("I want to bold and underline this text")
>I assume there are other parameters to the insertafter command,.
>
>2.) How do you put in a page break
>
>oword.selection.insertafter(cr) -- does a carriage return, what is a page break (I tried (pb) -- of course didn't work).
>
>3.) If you want to write to the header/footer --- does anyone have a example?
>
>I know these are pretty basic and I should be able to find them, I just don't have the resource material with me.
>
>Thanks in Advance,
>
>Kevin