In MS Word, Opening a .txt file gives "Is not a valid single file web page" error

0

I have an email header stored in a .txt file.
An automated process opens the file in Ms Word 2016.

Word gives "Is not a valid single file web page" error.

Obviously word is sniffing the file, it looks like a mime document, word incorrectly decides it's a web archive file, and tried to open it as such.
This fails, as it obviously isn't a web archive file.

Is there any way to switch off this behavior in word?

Binary Worrier

Posted 2017-02-10T14:10:34.987

Reputation: 766

1does it display the same behavior if you open it from within word using the "open" feature? – Blaine – 2017-02-10T14:18:35.117

@Blaine: Yes it does. – Binary Worrier – 2017-02-10T14:21:38.313

Answers

0

Having typed the question I subsequently submitted rephrased web searches, and got Turning off HTML Conversions, give two options.

One can either find the "Confirm File Format Conversion On Open" option in
Options->Advanced->General
and switch it on, this will not work for me, as there's no user to confirm the action, or . . .

... you can remove the HTML file filter used by Word. This is done by running the Word Setup program and then making sure the HTML filter is removed from the system. (You do this by making sure the option is explicitly NOT selected in the Setup program.)

Binary Worrier

Posted 2017-02-10T14:10:34.987

Reputation: 766

1Please quote the essential parts of the answer from the reference link(s), as the answer can become invalid if the linked page(s) change. – DavidPostill – 2017-02-10T14:32:27.823