>Ken,
>
>I realize you've said it worked before using FCREATE, but just wondering if
>you ran any tests with an existing DOC file instead of creating a 0 byte
>new/empty file each time - just to see if it has any effect.
>
>Bill
If I create and save an "empty" Word document (containing a single blank
space) and shut down Word, I get a 19 kb .DOC file. (Testing with a larger
file that contains text produces identical results, BTW.)
Then:
Test 1:
* No FCREATE(), no file name && No file created
WITH oMyWord
.documents.Add && "Could not open macro storage" ;
No temp file created
ENDWITH
Test 2:
* No FCREATE()
WITH oMyWord
.documents.Add(cFile) && "Could not open macro storage" ;
4 kb Word temp file created
ENDWITH
Test 3:
nHandle = FOPEN(cFile) && Pre-created Word file successfully opened
WITH oMyWord
.documents.Add && "Could not open macro storage" ;
No temp file created
ENDWITH
Test 4:
nHandle = FOPEN(cFile) && Pre-created Word file successfully opened
WITH oMyWord
.documents.Add(cFile) && "Could not open macro storage" ;
4 kb temp file created
ENDWITH
Again, in all cases, the temp Normal.dot file is created in the appropriate
location, and Word hangs at the error and must be killed in the Task Manager.
And I've just tested the original code with Windows XP SP 3. It fails at
the same point with a Word error "This is not a valid file name." As I
said, this was working fine in Windows 2000. Curiouser and Curiouser.
Any further thoughts?
Thanks!
Ken Dibble
www.stic-cil.org
_______________________________________________
Post Messages to: [email protected]
Subscription Maintenance: http://leafe.com/mailman/listinfo/profox
OT-free version of this list: http://leafe.com/mailman/listinfo/profoxtech
Searchable Archive: http://leafe.com/archives/search/profox
This message:
http://leafe.com/archives/byMID/profox/[email protected]
** All postings, unless explicitly stated otherwise, are the opinions of the
author, and do not constitute legal or medical advice. This statement is added
to the messages for those lawyers who are too stupid to see the obvious.