Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Programmatically add a Word olecontrol and load with a f
Message
From
24/04/1998 16:32:28
 
 
To
23/04/1998 13:55:52
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00094373
Message ID:
00094769
Views:
21
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!
Previous
Reply
Map
View

Click here to load this message in the networking platform