Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Winword 2002 and Windows 98 problem
Message
 
To
23/02/2004 15:41:15
General information
Forum:
Visual FoxPro
Category:
COM/DCOM and OLE Automation
Miscellaneous
Thread ID:
00880069
Message ID:
00880254
Views:
18
Can the user write to that drive/path? For kicks, have them try to save a notepad file into the same folder.

>I don't know if the problem is attributable to the fact that the client is running word 2002 on win98, but my code opens a word ole object and immediately adds a blank document and saves it to a temp directory. The document is made up of "lttr" + user id + '.doc'. In this case the user id is "CR", so the save overall resolves to "N:\temp\lltrcr.doc". I've not had a problem with this before, but in the case of this client, on the line that tells word to save:
>
oWord.WordBasic.FileSaveAs(m.l_tempdoc)
>where l_tempdoc is the above path and file name, he is getting an ole error 0 that says that Word can't save the file because it is open elsewhere.
>
>This is code from long ago, and I'd write it a bit differently today (using a document object), but...
>
>He even gets this after a reboot. The file is not in use anywhere else - I've had it checked by their IT guy (they're on a novell network - I'm not sure of the version number, but it's recent).
>
>Has anyone else ever run into this? Is is likely due to running Word 2002 on Win98? He seems to have no other problems running that combination - only in this case under our app.
>
>Any suggestions as to where to look would be appreciated.
>
>If not, I'll try changing the code to use document objects and see if it makes a difference, but since other clients don't seem to have an issue with this, I hesitate to fix what ain't broken.
>
>Thanks
>
>Alan
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform