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.