Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Opening a created
Message
From
28/04/2005 14:48:18
 
 
To
28/04/2005 14:32:54
General information
Forum:
Visual FoxPro
Category:
Other
Environment versions
Visual FoxPro:
VFP 6
OS:
Windows XP SP2
Network:
Windows 2003 Server
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01009298
Message ID:
01009398
Views:
12
>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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform