1. Rick Hiebert
  2. PowerBuilder
  3. Friday, 22 December 2023 21:00 PM UTC

Anyone know how to resolve the error?

Kai Zhao @Appeon Accepted Answer Pending Moderation
  1. Friday, 29 December 2023 05:24 AM UTC
  2. PowerBuilder
  3. # 1

Hi Rick,

For the failure to find the required WebView2 Runtime in the EXE issue:
If you haven’t restarted the IDE, the IDE might be still using the Evergreen Runtime, not the fixed version.
Please make sure you have put the fixed version of Runtime in the following directory:
C:\Program Files (x86)\Appeon\Common\PowerBuilder\Runtime 22.1.0.2640\PBWebView2
C:\Program Files (x86)\Appeon\Common\PowerBuilder\Runtime 22.1.0.2640\x64\PBWebView2
You can also use the function WebBrowserSet ('FixedVersionRuntimePath', %FixedVersionRuntimePath%) in the application to set the Path for the Fixed Version of Runtime.

For the blank page after printing PDF and the error issue:
I did not reproduce either of the issues on our end. Which version did you upgrade from to PB 2022 R2的? Please try to full build the application and if the issue remains, please open a support ticket in the support portal and please provide a test case. Many thanks in advance.
https://www.appeon.com/standardsupport/

Regards,
Kai

Comment
  1. Rick Hiebert
  2. Friday, 29 December 2023 15:48 PM UTC
Hi Kai,



Unfortunately our clients workstations have restricted access and we can not deploy to your suggested location. I can deploy to C:\Program Files (x86)\JUS\Common\WV2 120.0.2210.91\PBWebView2.

I have used the WebBrowserSet function in the application open event to set the path to the above. and I still get the following error: "Couldn't find WebView2 Runtime. Do you have a version installed?". I have also placed a copy of the WebView2 files in the application directory with the same results.



Our previous version was PB2021, I have gone back to the version we had in PB2021, compiled it into PB2022 and the print issue is there. It is using the Evergreen web browser obviously. How do I find out which version of Evergreen I have installed?



Regards,

Rick



  1. Helpful
  1. Kai Zhao @Appeon
  2. Tuesday, 2 January 2024 00:52 AM UTC
Please make sure the bitness of WebView2 runtime is as same as your PB application.

You can go to Control Panel\Programs\Programs and Features to find the the version of Evergreen.

Please report the PB issues via our standard support ticketing system to ensure it is being properly received and tracked by our tech support: https://www.appeon.com/standardsupport/. Many thanks in advance.
  1. Helpful
  1. Roland Smith
  2. Tuesday, 2 January 2024 02:12 AM UTC
You should allow your app to use the version of WebView2 (Evergreen) that is installed and maintained by Windows. It is installed in C:\Windows\System32\Microsoft-Edge-WebView. You could use my OSVersion object to get the version number of one of the files in that folder.

https://www.topwizprogramming.com/freecode_osversion.html
  1. Helpful
There are no comments made yet.
Rick Hiebert Accepted Answer Pending Moderation
  1. Thursday, 28 December 2023 19:01 PM UTC
  2. PowerBuilder
  3. # 2

Hi Kai,

1. The PB version you are using. 2022 R2 Build 2828
2. The detailed OS version and WebView2 runtime version that have the issue. Windows 10 Enterprise 21H2 OS Build 19044.3693.  I've downloaded and distributed the WebView2 Fixed Version Runtime 120.0.2210.91. But I have tested it using the Evergreen Runtime as well. I have tried all three settings with the following results:

  1. Always use the Evergreen Runtime at the client: Error occurs as per steps below.
  2. Always use the Fixed Version at the client: Works in IDE, but fails to find the required WebView2 Runtime in the EXE.
  3. Use the Evergreen Runtime by default; if it does not exist, use the Fixed Version: Error occurs as per steps below.


3. Is the problem reproducible? Yes.
4. Do other machines have the issue too? Yes.
5. Do other applications have the issue too? None of our other application are using 2022 yet.
6. A simple PB case and the detailed steps to reproduce the issue.  Open PDF in webbrowser, then select to print PDF (this can be via code or the print icon in the webbrowser). PDF prints but web browser goes blank, and when loading another object into the webbrowser the error appears and upon clicking the OK button the application crashes. 

Regards,
Rick

Comment
There are no comments made yet.
Kai Zhao @Appeon Accepted Answer Pending Moderation
  1. Monday, 25 December 2023 03:34 AM UTC
  2. PowerBuilder
  3. # 3

Hi Rick,

The developer analyzed the related code and found it might be caused by a failure to set a drag property during the WebBrowser initialization. This property is not open to users yet so theoretically doesn’t affect WebBrowser functionality.
Please open a support ticket in the support portal and please provide the information below to us for more study. Many thanks in advance.
https://www.appeon.com/standardsupport/

1. The PB version you are using.
2. The detailed OS version and WebView2 runtime version that have the issue.
3. Is the problem reproducible?
4. Do other machines have the issue too?
5. Do other applications have the issue too?
6. A simple PB case and the detailed steps to reproduce the issue.

Regards,
Kai

Comment
There are no comments made yet.
Chris Pollach @Appeon Accepted Answer Pending Moderation
  1. Friday, 22 December 2023 21:17 PM UTC
  2. PowerBuilder
  3. # 4

Hi Rick;

  Does this error occur when running your App from under the IDE or when you are running your APP as an EXE?
Regards ... Chris

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.