Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Open a word document
Message
From
31/10/2011 09:17:02
Issam Mansour
Jordan Business Machines
Amman, Jordan
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
COM/DCOM and OLE Automation
Title:
Open a word document
Environment versions
Visual FoxPro:
VFP 9 SP2
OS:
Windows 7
Miscellaneous
Thread ID:
01527675
Message ID:
01527675
Views:
100
Hi,

I trying to open a word document on form with the following code:-
Thisform.AddObject('oWordDoc','OleControl','WordDocument')
With Thisform.oWordDoc
	.Top =  1  &&thisform.subject.Top +thisform.subject.Height +20
	.Left = 5
	.Height =  Thisform.Height - 20
	.Width =  Thisform.Width - 10
	.object.Application.Documents.Open(GETfile('doc'))
	.Visible =  .T.
	Thisform.Show
	.DoVerb(0)
Endwith
the document open with a new word document, not on form.

Regards
Next
Reply
Map
View

Click here to load this message in the networking platform