1. Miller Rhodes
  2. PowerBuilder
  3. Saturday, 30 March 2024 18:30 PM UTC

I am currently running Powerbuilder 2022 R2 Build 2819. However, I am running the IDE with the 22.0.0.1900 DLLs and doing my builds with those

same DLLs in my project file.  I have a basic Powerbuilder window and have dropped a Web Browser object onto it.

The default URL is "file:///[path]/ whatever.gif".  When that window is opened, this works perfectly just running from the IDE.

However, I get a blank screen when the code is deployed.

What have I tried: 

1. I have the pbcef folder as a subfolder of my deployment folder and I have tried just copying the contents of that folder into my deployment folder.

2. After reading some posts here, I have added the code below to my application Open event:

int li_ret
string ls_ret
li_ret = WebBrowserGet("UserAgent", ref ls_ret)
if ls_ret = "" then
li_ret = WebBrowserSet("UserAgent", "AppeonWebBrowser")
if li_ret <> 1 then
Messagebox("Information", "Error setting the UserAgent for the WebBrowser", information!)
end if
end if


li_ret = WebBrowserSet("allow-file-access-from-files", "true")
if li_ret <> 1 then
Messagebox("Information", "Error setting the FileAccess for the WebBrowser", information!)
end if

 

At this point, I am looking for other things to try or see if someone has overcome this recently.

Accepted Answer
Chris Pollach @Appeon Accepted Answer Pending Moderation
  1. Saturday, 30 March 2024 18:46 PM UTC
  2. PowerBuilder
  3. # Permalink

Hi Miller;

  FWIW: those builds used the Chromium engine under the hood to drive the WB control. In PB 2022 R3, Appeon switched over to using the WebView2 engine to drive the WB control. If you can, you might want to try a quick R3 test to see if this version allows your GIF to work OK from an EXE.

Regards ... Chris 

Comment
  1. Miller Rhodes
  2. Saturday, 30 March 2024 21:15 PM UTC
Chris's suggestion was the SOLUTION. Thank you to Chris and thanks to Armeen and Appeon for constantly improving the product!!!
  1. Helpful
  1. Chris Pollach @Appeon
  2. Saturday, 30 March 2024 23:09 PM UTC
That's awesome news Miller ... Thanks for the feedback! :-)
  1. Helpful
  1. Armeen Mazda @Appeon
  2. Tuesday, 2 April 2024 17:48 PM UTC
Glad to hear PB 2022 R3 resolves your issue!
  1. Helpful
There are no comments made yet.
Miller Rhodes Accepted Answer Pending Moderation
  1. Saturday, 30 March 2024 21:03 PM UTC
  2. PowerBuilder
  3. # 1

Thank you Chris.  I am in the progress of trying that!

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.