none
Native Browsercontrol not allowing viewing of mht files RRS feed

  • Question

  • Hi, I have an issue viewing mht files through the browser control.

    When running the code to open the form

    Me.YourWebBrowserControlName.ControlSource = "=""C:\Test\testmht.mht"""

    In environment
    Windows 10 Pro  / 1803 / 17134.345
    Access 2016 MSO / 16.0.9126.2295 (32-bit)

    Access through`s up the “File Download“ popup with the question Do you what to save this file?

    The mht source file was saved from IE11. As a test I have load the form with jpg, png, pdf, html all successful

    Unfortunately, I have replicated this issue in the offices 5pc’s and at home based on the same Environment.

    I did manage to get it to work on an old pc that how has the same win10 build but uses an old  Access Version from Office Professional 2010 14.0.7214.5000 (32-bit)

    What’s going on?

    Tuesday, November 13, 2018 11:29 AM

All replies

  • Hi,

    Just for background information, in case others might need it, there's further discussion on this topic at UtterAccess.

    Good luck!

    Tuesday, November 13, 2018 3:59 PM
  • Just as FYI, I tried it on my current environment (Win 10 Enterprise, Access 2016 MSO (16.0.4549.1000) 32-bit) and was able to view the mht file in the browser control (rather than being asked to download a file); however, I did get some JavaScript error messages.

    Tuesday, November 13, 2018 4:24 PM
  • Hi,

    Just as FYI... there is an update to your thread at UtterAccess with the latest information from Microsoft.

    Cheers!

    Tuesday, November 13, 2018 5:29 PM
  • Hi theDBguy, Thanks for the input againnnnnn.  From your version No I was trying to figure out if it was just the last update that “broke it”. I tried to track down how many version’s My build 1803 Access 2016 MSO 16.0.9126.2295 was away from your build Access 2016 MSO (16.0.4549.1000) or vice versa. Looked at  https://docs.microsoft.com/en-us/officeupdates/update-history-office365-proplus-by-date  but I think it’s based on the type of 365 licenses rather than purely numerical.
    In the spirt of sharing, I use  Me.WebBrowser0.Object.Silent = True  to stop the website scripts issue
    Fingers crossed something turns up.

    Tuesday, November 13, 2018 5:29 PM
  • Hi,

    Thanks for the tip on silencing the script errors. Good luck with your project.

    Tuesday, November 13, 2018 6:14 PM