Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Open a word document
Message
De
31/10/2011 09:17:02
Issam Mansour
Jordan Business Machines
Amman, Jordanie
 
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
COM/DCOM et OLE Automation
Titre:
Open a word document
Versions des environnements
Visual FoxPro:
VFP 9 SP2
OS:
Windows 7
Divers
Thread ID:
01527675
Message ID:
01527675
Vues:
99
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
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform