Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Opening a created
Message
De
28/04/2005 14:48:18
Jim Winter
Jim Winter Consulting
Hinesburg, Vermont, États-Unis
 
 
À
28/04/2005 14:32:54
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Versions des environnements
Visual FoxPro:
VFP 6
OS:
Windows XP SP2
Network:
Windows 2003 Server
Database:
Visual FoxPro
Divers
Thread ID:
01009298
Message ID:
01009398
Vues:
11
>Dear terry,
>Thanks for your help, but still I am Having trouble with the code in this line...
>
>lcFileToOpen = "C:\Reports\Datereport.doc"
>.oWord = CREATEOBJECT( "Word.application") <--- error occurs in this line(with/endwith)
>.oWord.Open( lcFileToOpen)
>.oWord.Visible = .T.
>
>what should i substitute "word.application" with?
>Or do i need to add a class library?
>Remember, the document is already created... I just want to open the .doc file using a command button on my form. It should open Microsoft word and show Datereport.doc...
>
>HUCHM
>
>Att. Juan

Juan,

Try it without the . before oWord.

Regards,
Jim
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform