Office 2016: Can't attach a HTM report

User avatar
ErikJan
5StarLounger
Posts: 1185
Joined: 03 Feb 2010, 19:59
Location: Terneuzen, the Netherlands

Office 2016: Can't attach a HTM report

Post by ErikJan »

In Word 2016, I'm dragging a HTM report file into my document (a text file works) and I get this:
2015 Oct 12 231039-Microsoft Word.png
and then this
2015 Oct 12 231100-Microsoft Word.png
And the file is not added as I expect (as an embedded file, showing as an icon).
Office installed normally, all seems to work. I Googled but no hits (yet).
You do not have the required permissions to view the files attached to this post.

User avatar
HansV
Administrator
Posts: 78237
Joined: 16 Jan 2010, 00:14
Status: Microsoft MVP
Location: Wageningen, The Netherlands

Re: Office 2016: Can't attach a HTM report

Post by HansV »

This is an old problem, it occurred in earlier versions too.

Microsoft suggests deleting the registry keys HKEY_CLASSES_ROOT\.htm and HKEY_CLASSES_ROOT\.html, then restarting Windows. The keys should be recreated automatically. However, some users report that it helps, others that it doesn't...

Another way of inserting a HTML file is
- On the Insert tab of the ribbon, click Object > Object...
- In the Create New tab, select Package, then click OK.
- In the dialog that appears next, click Browse...
- Locate the HTM file and click Open.
- Click Next.
- Specify a label (caption), then click Finish.
Best wishes,
Hans

User avatar
ErikJan
5StarLounger
Posts: 1185
Joined: 03 Feb 2010, 19:59
Location: Terneuzen, the Netherlands

Re: Office 2016: Can't attach a HTM report

Post by ErikJan »

Deleted the HTM and HTML... didn't help. Your package workaround did work OK (thanks!).

I still find it irritating that this happens to me. How is the HTM reg entry in HCR supposed to look like?

User avatar
HansV
Administrator
Posts: 78237
Joined: 16 Jan 2010, 00:14
Status: Microsoft MVP
Location: Wageningen, The Netherlands

Re: Office 2016: Can't attach a HTM report

Post by HansV »

I get the same error message that you do, so for what it's worth: both .htm and .html look like this for me:
S0677.png
There are also some subkeys which I don't think are relevant to the problem:
S0678.png
You do not have the required permissions to view the files attached to this post.
Best wishes,
Hans

User avatar
ErikJan
5StarLounger
Posts: 1185
Joined: 03 Feb 2010, 19:59
Location: Terneuzen, the Netherlands

Re: Office 2016: Can't attach a HTM report

Post by ErikJan »

If you get the same error message as I do, our Reg settings could very well be the same. Someone else who does not have this problem who'd like to share their HTM and HTML registry settings?

Hans, question for you: do you have Office 64-bit installed or did you ever do that on your system? Just a thought... I never had this problem but on my new system I accidentally first installed Office 64. Then I uninstalled and installed the 'normal' Office 32bit and now I get this problem. Might not be correlated at all but who knows...

User avatar
HansV
Administrator
Posts: 78237
Joined: 16 Jan 2010, 00:14
Status: Microsoft MVP
Location: Wageningen, The Netherlands

Re: Office 2016: Can't attach a HTM report

Post by HansV »

No, I have 64-bit Windows, but never installed 64-bit versions of Office, only the 32-bit version.
Best wishes,
Hans

User avatar
ErikJan
5StarLounger
Posts: 1185
Joined: 03 Feb 2010, 19:59
Location: Terneuzen, the Netherlands

Re: Office 2016: Can't attach a HTM report

Post by ErikJan »

Someone else who does not have this problem who'd like to share their HTM and HTML registry settings?
Anyone?

User avatar
Rudi
gamma jay
Posts: 25455
Joined: 17 Mar 2010, 17:33
Location: Cape Town

Re: Office 2016: Can't attach a HTM report

Post by Rudi »

I'd assist if I can but I'm not on those versions yet!! Sorry.
Regards,
Rudi

If your absence does not affect them, your presence didn't matter.