1. Nishit Ranjan
  2. PowerBuilder
  3. Wednesday, 28 February 2024 15:44 PM UTC

Hi All,

I am using PB 2022 build 1878.

In our application we are using webbrowser control to view PDF files (local). When we run application via IDE, everything works fine (pdf file is loaded and displayed. but when I run the application via exe, pdf files are not being displayed.

All the inputs/help will be appreciated. 

 

Thanks,

Nishit

Chris Pollach @Appeon Accepted Answer Pending Moderation
  1. Wednesday, 28 February 2024 20:21 PM UTC
  2. PowerBuilder
  3. # 1

Hi Nishit ;

  FYI: In that version of PB that you are using, Appeon used the "Chromium" engine (under the hood) to drive the PB Web Browser control. Since then in PB 2022 R3, we have switched internally to using the Microsoft WebView2 engine (under the hood). The WebView2 engine normally does a much better job at handling HTML5, redirects, jS execution, ,etc.

  My Suggestion would be to try a quick test with PB 2022 R3 Web Browser control and see URL now works OK for you.

Regards ... Chris

Comment
  1. Nishit Ranjan
  2. Thursday, 29 February 2024 04:18 AM UTC
Hi Chris, thanks for your response. However, we have upgraded our application to PB 2022 (build 1878) last year itself. And upgrading entire application again to a different version will take a lot of effort.



Just to describe my problem better, we were using Adobe ActiveX earlier to view PDF files (local files). Now we have replaced the Adobe ActiveX with WebBrowser control. At PBL level it works fine, but when we deployed it and updated our exe. When we ran application via exe, PDF is not being displayed, and we are not even getting any error.



Hope, I am able to convey the problem. Is it something I need to package while deploying th application, so that it will function properly? I am using Navigate() function to load PDF files.
  1. Helpful
  1. Armeen Mazda @Appeon
  2. Thursday, 29 February 2024 07:55 AM UTC
Hi Nishit, Did you deploy pbwebbrowser.dll and the "pbcef" folder with your app .EXE? When you launched the .EXE, did you select "Run as Administrator" option?

  1. Helpful 1
  1. Chris Pollach @Appeon
  2. Thursday, 29 February 2024 13:37 PM UTC
Since it works in the development environment, I would then recommend that you carefully review the runtime files required to be deployed for the Web Browser control ... https://docs.appeon.com/pb2022r2/application_techniques/PowerBuilder_runtime_files.html#d0e24964
  1. Helpful 1
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.