Webbrowser and mhtml
- How-to
- Tomas Beran
- PowerBuilder
- Monday, 4 April 2022 12:52 PM UTC
Hi
Is it possible to show mhtml (mht, mhtm) files in the Chromium based webbrowser control? Chrome supports it from local storage. CHromium suports it (according the documentation I've found). But if I try navigate to a local mhtml file the WebBrowser object shows nothing.
ll_ret = browser.navigate("D:\test.mhtml")
returns 1. But shows blank page.
What I tried:
I set
WebBrowserSet ("allow-file-access-from-files","true")
before I opened the webbrowser object.
browser.navigate("D:\test.mhtm")
browser.navigate("D:\test.mht")
browser.navigate("file://D:\test.mhtml")
but nothing worked.
Is opening mhtml format limited somehow in the webbrowser object? Or am I overlooking some option? I use this format for saving formated e-mails because this is a native format supported by Outlook.
Find Questions by Tag
Helpful?
If a reply or comment is helpful for you, please don’t hesitate to click the Helpful button. This action is further confirmation of their invaluable contribution to the Appeon Community.