Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
MS Word OLE problem
Message
 
Information générale
Forum:
Visual FoxPro
Catégorie:
COM/DCOM et OLE Automation
Divers
Thread ID:
00496352
Message ID:
00496409
Vues:
26
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
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform