Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

runt-time error 5987: disk full when saving word-document

Status
Not open for further replies.

Stefan29

Technical User
Oct 30, 2002
9
BE
Hi,

I have the following problem with a little Visual Basic (version 5) -program:

I want to open an existing Word-document, replace same words, save this document and close it. With one Word-document the error 5987: "Disk is full"-message appears, however my free disk capacity is 14.9GB and my word-file is only 527kB. When i do thes handlings manually, there isn't a problem, there's only a problem when i do it automaticcaly with Visual Basic. When i use the same program for a excel-file or for a little test-document, everything works fine!

Thank you for your help!
Van Thienen Stefan
 
Could it be something like your disk is partitioned and where your saving your file hasn't got as much room as the other partition? Does it do the same thing if you were to save it to A:\?
 
Same feeling than TomKane, are you sure of the path in wich you save your doc ? do you use full path name to save ? Water is not bad as long as it stays out human body ;-)
 
Thank you for the quick answer:

1)this disk isn't partitioned
2)i'm pretty sure off the path name (it function well with another smaller document!)

This is a part of the program:

Global y as object
Set y = CreateObject("Word.application")
y.Documents.Open filename:= "c:\test.doc"

....

y.activedocument.save
y.activeWindow.Close
y.application.quit

 
So, here are some clues :
- Is your disk read-only ? (I don't think so but who knows)
- May be VB5 is too old to accept huge capacity disks (eg : the variable used to get free disk capacity may be too short to handle your free disk space. But I have doubts with it because you said that the program work well for a smaller doc. Water is not bad as long as it stays out human body ;-)
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top