Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
MS Word OLE problem
Message
General information
Forum:
Visual FoxPro
Category:
COM/DCOM and OLE Automation
Miscellaneous
Thread ID:
00496352
Message ID:
00496409
Views:
29
I'm not familiar with the Collapse method, so I'm not sure if there's something more to what you want to do.

If you just want to start Word, create a new document and set it to be centered and set the font and size and type in some stuff, the following will do it (I got the Selection object from a recorded macro and merged it into the code you posted):
#DEFINE wdalignparagraphcenter 1
oword=CREATEOBJECT('word.application')
oword.VISIBLE=.T.
odoc=oword.documents.ADD()
orange=oword.selection
WITH orange
  .paragraphformat.ALIGNMENT = wdalignparagraphcenter 
  .FONT.SIZE = 14 
  .FONT.NAME = ("Arial Black") 
  .typetext("Some text to put on screen")
ENDWITH
--Brad
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform