How to stop the Word.DOCs generated by the server using the "_files" folders?

I have a Word.DOCument created by a server (classic ASP). This is an HTML file that is output as .DOC using the application content type / msword. The document is created perfectly, saves a fine, opens perfectly in Word and is fully editable ...

The problem occurs the next time you save the document in Word. A folder is created in the document directory with the name "<file_name> _files " - as if you were saving a web page in IE. Inside this folder are three files colorschememapping.xml, filelist.xmland themedata.thmx. This happens when the document is first created using IE or Firefox.

-> How can I prevent the creation of these _files when saved in Microsoft Word?

( stream : users click the link in the browser, save (.doc) as ..., open .doc in the MS Word folder, edit, save → "_files")

+1
source share
4 answers

If your result is not too complicated, try using RTF. I had a decent success outputting RTF files with the extension .doc.

0
source

This does not only come from generating a file from Firefox / IE. Microsoft Word 2007 does this when editing any HTML file and saving.

The problem is that if you delete the directory, the HTML file will also be deleted.

My workaround:

  • Edit the file in plain Word
  • Save file
  • ( Word )
  • " " → .

HTML _files.

+1

Word 2007 2010 HTML, . HTML.

The only way I found is to create a real Word Doc without its HTML-based, or the user has the option to "Single Web Page File" when they do "Save As."

0
source

Remove to trash. This removes both the word doc and the unwanted folder. Recover the word doc and then take out the basket.

-1
source

All Articles