Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Programmatically add a Word olecontrol and load with a f
Message
De
24/04/1998 16:32:28
 
 
À
23/04/1998 13:55:52
Nancy Folsom
Pixel Dust Industries
Washington, États-Unis
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00094373
Message ID:
00094769
Vues:
22
Nancy,
Following code I used is from standart VFP samples:
oForm = THISFORM
oForm.AddObject('oWordDoc','OleControl','WordDocument')
oForm.oWordDoc.Height = THISFORM.txtFrame.height
oForm.oWordDoc.Width = THISFORM.txtFrame.width
oForm.oWordDoc.Top = THISFORM.txtFrame.top
oForm.oWordDoc.Left = THISFORM.txtFrame.left
oForm.oWordDoc.Visible = .t.
oForm.Show
oForm.oWordDoc.DoVerb(0)
oWordRef = GetObject('','word.basic')
You can find this for more details under Help, Sample apps, ActivX, Automate MSW in form.

I'done it once and it worked. I hope it will help. Good luck!
XO4Y BCE 3HATb,YMETb,IMETb!
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform