Mike Clark
Member
Hi
We have used the following code under 9.1d (Chui) to open a Word 97 document quite successfully (Windows 98).
However when running on another PC still under Windows 98, but with Word 2000
we get the following message
This file is in use by another application
normal.dot
we can close down/exit from normal.dot and go back into progress. The word document has updated correctly.
Any body any ideas?
Regards
Mike
define variable oWord as COM-HANDLE NO-UNDO.
define var rp-filenm as char format "x(50)" no-undo.
rp-filenm = "mcxbook.doc".
CREATE "Word.Application" oWord CONNECT TO rp-filenm NO-ERROR.
IF NOT VALID-HANDLE(oWord) THEN CREATE "Word.application" oWord.
oWordocuments:Open(rp-filenm).
oWord:Visible = TRUE.
PAUSE 2 no-message. /* Allow you to actualy see the document before we kill it */
RELEASE OBJECT oWord.
oWord = ?.
/*
message "back into the program" view-as alert-box.
*/
pause 1 no-message.
We have used the following code under 9.1d (Chui) to open a Word 97 document quite successfully (Windows 98).
However when running on another PC still under Windows 98, but with Word 2000
we get the following message
This file is in use by another application
normal.dot
we can close down/exit from normal.dot and go back into progress. The word document has updated correctly.
Any body any ideas?
Regards
Mike
define variable oWord as COM-HANDLE NO-UNDO.
define var rp-filenm as char format "x(50)" no-undo.
rp-filenm = "mcxbook.doc".
CREATE "Word.Application" oWord CONNECT TO rp-filenm NO-ERROR.
IF NOT VALID-HANDLE(oWord) THEN CREATE "Word.application" oWord.
oWordocuments:Open(rp-filenm).
oWord:Visible = TRUE.
PAUSE 2 no-message. /* Allow you to actualy see the document before we kill it */
RELEASE OBJECT oWord.
oWord = ?.
/*
message "back into the program" view-as alert-box.
*/
pause 1 no-message.