Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Open a word document
Message
 
 
To
31/10/2011 09:17:02
Issam Mansour
Jordan Business Machines
Amman, Jordan
General information
Forum:
Visual FoxPro
Category:
COM/DCOM and OLE Automation
Environment versions
Visual FoxPro:
VFP 9 SP2
OS:
Windows 7
Miscellaneous
Thread ID:
01527675
Message ID:
01527681
Views:
60
You can do that with Web Browser control. It would be similar to http://berezniker.com/content/pages/visual-foxpro/view-pdf-vfp-form


>
>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
--sb--
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform