1. Bernhard Stoeter
  2. PowerBuilder
  3. Monday, 7 March 2022 14:19 PM UTC

Hello,

I’m migrating from MS WebBrowser Control (IE) to the PowerBuilder internal WebCrowser Control (CEF). It works fine for web based files but fails for local files.

I know this is correct, it is the documented behaviour.

But it does not solve my need to display html files which are locally stored. Is there any other way to display them without loading it up to the web?

Tnaks in advance,

Bernhard

Accepted Answer
Bernhard Stoeter Accepted Answer Pending Moderation
  1. Tuesday, 8 March 2022 06:45 AM UTC
  2. PowerBuilder
  3. # Permalink

Thanks for the help. Now I got it working. My fault was the file extension. MS WebBrowser accepted *.tmp, CEF WebBrowser displayed the source code but does not interpret the html tags. Changing from *.tmp to *.html solved the problem.

Bernhard

Comment
  1. Armeen Mazda @Appeon
  2. Tuesday, 8 March 2022 20:08 PM UTC
Thanks for sharing the solution. As Brad mentioned, please mark as solved and correct answer.
  1. Helpful 1
There are no comments made yet.
Brad Mettee Accepted Answer Pending Moderation
  1. Wednesday, 9 March 2022 07:57 AM UTC
  2. PowerBuilder
  3. # 1
Please mark this item as solved.
Comment
There are no comments made yet.
Matt Balent Accepted Answer Pending Moderation
  1. Monday, 7 March 2022 20:41 PM UTC
  2. PowerBuilder
  3. # 2

We have used the webbrowser control on a window and use the Navigate method with a fully qualified path to the file (a string value) without any issues.  PB 2019 R3 2728 is our version.

Are you getting any errors?

Comment
There are no comments made yet.
Brad Mettee Accepted Answer Pending Moderation
  1. Monday, 7 March 2022 15:05 PM UTC
  2. PowerBuilder
  3. # 3

I just tried using a webbrowser control with a local file, it works fine.

wb_1.Navigate("file:///r:\temp\dummy.html")

Once initial file is opened, it seems to be happy opening links, navigating to other pages through the local file system instead of a web server.

Comment
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.