Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Connect to the right Word instance with CREATEOBJECT()
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Titre:
Connect to the right Word instance with CREATEOBJECT()
Divers
Thread ID:
00097971
Message ID:
00097971
Vues:
58
Hi everyone,

in the example below I open an embedded Word document in a Word window and then set the pagesize of it.

THISFORM.Ole1.Refresh()
THISFORM.Ole1.DoVerb(-2)

oWord = GETOBJECT(,"Word.Application.8")
WITH oWord.ActiveDocument.PageSetup
.PageWidth = oWord.CentimetersToPoints(21)
.PageHeight = oWord.CentimetersToPoints(29.7)
ENDWITH

How can know if the right Word instance is opened, if the user has a number of the running?

Is there a better way to get hold of the instance of Word the OLE object is opened in??
(using VFP 3.0 for Win & Mac)
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform