General information
Category:
COM/DCOM and OLE Automation
I found one of my problems... perhaps its related but am not sure why the reference to the template in the error msg.
The WORDDOCS are on a different PC and i was relying on VFPs relative paths to find the documents (i.e. the START IN or the SET PATH value plus \WORDDOCS\docname.doc). Whats interesting is that RELATIVE PATHS works on the local machine if the worddocs are in fact on the same machine but it doesnt work from another machine.
this works on a local machine:
mdoc = "worddocs\payupletter.doc"
WordObj = CREATEOBJECT("Word.Application")
WordObj.documents.open("&mdoc.")
but it doesnt from another workstation even though you can get current in the drive / folder mapped over to the server. IF FILE(x) returns TRUE but WORD hurls when u try to open the doc.
Page 43 of Della's and Tamar's automation book got me going in the right direction. Will have to use SYS(5)+SYS(2003) along with the saved folder/doc name.
>A user is getting the following error when they launch an option that starts word and prints a document:
>
>"WORD cannot open this document template:
>C:\programfiles\yadayadayada\ezphoto.dot"
>
>Option works on another pc and there is no direct call to this document. is there a template setting that should be turned off?
>
>TIA
Previous
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only