1. Tomas Beran
  2. PowerBuilder
  3. 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.

Tomas Beran Accepted Answer Pending Moderation
  1. Monday, 4 April 2022 17:33 PM UTC
  2. PowerBuilder
  3. # 1

Thank you Chris. Is there a public link to PB2022 Beta? I can't find it.

Comment
  1. Chris Pollach @Appeon
  2. Monday, 4 April 2022 18:44 PM UTC
No .. the Beta a ways off yet. Tomas.
  1. Helpful
There are no comments made yet.
Chris Pollach @Appeon Accepted Answer Pending Moderation
  1. Monday, 4 April 2022 15:52 PM UTC
  2. PowerBuilder
  3. # 2

Hi Thomas;

  Please try this in PB2022 Beta as Appeon Engineering is currently updating the entire Chromium Engine (underneath the PB hood) for the built-in WB Control for this new PB release.

Regards ... Chris

Comment
  1. Roland Smith
  2. Monday, 4 April 2022 17:19 PM UTC
Will the 2022 Beta be made available to MVPs soon?
  1. Helpful
  1. Chris Pollach @Appeon
  2. Monday, 4 April 2022 18:44 PM UTC
Only if you have been good! ;-)

No a while yet Roland.
  1. Helpful
  1. Andreas Mykonios
  2. Tuesday, 5 April 2022 09:44 AM UTC
Non MVP's also want to try it ;-)
  1. Helpful
There are no comments made yet.
  • Page :
  • 1


There are no replies made for this question yet.
However, you are not allowed to reply to this question.