1. Roland Smith
  2. PowerBuilder
  3. Sunday, 3 February 2019 17:00 PM UTC

I'm trying to use the Microsoft WebBrowser control in a PB 12.6 64bit application. When I run it, it gives an error that it is unable to convert an any variable to extobject.

 Has anyone gotten this to work?

 

Accepted Answer
Chris Pollach @Appeon Accepted Answer Pending Moderation
  1. Monday, 4 February 2019 16:20 PM UTC
  2. PowerBuilder
  3. # Permalink

Hi Roland;

   FWIW:    Working OK for me in Appeon PB2017R3 ...

    Could be a PB 12.6 issue as Appeon has patched numerous PB 12.6 issues since taking over the baseline code from SAP.

Regards ... Chris

 

Comment
  1. Roland Smith
  2. Monday, 4 February 2019 16:47 PM UTC
The display of web pages works, it is the accessing of properties that fails. I just tested using 2017-R3-MR and 2018-Beta1 and it works so Appeon has fixed this.
  1. Helpful
  1. Roland Smith
  2. Monday, 4 February 2019 16:50 PM UTC
I'm going through all the code examples on my website to make sure they all work properly in 64bit mode. Instead of PB8/PB10 versions, they will have PB10.5/12.6 versions.



The ones with the WebBrowser control I will have to use 2017 instead of 12.6.
  1. Helpful
  1. Chris Pollach @Appeon
  2. Monday, 4 February 2019 17:18 PM UTC
Hi Roland;

Thanks for checking this with R3 & PB2018 (actually, PB2019 Beta#1) and reporting back to us!

That is Super Great news! :-)

Regards ... Chris
  1. Helpful
There are no comments made yet.
Roland Smith Accepted Answer Pending Moderation
  1. Monday, 4 February 2019 14:24 PM UTC
  2. PowerBuilder
  3. # 1

More info:

It does allow for display of web pages but any code that attempts to access a property gets an error like this:

PowerBuilder application execution error (R0019)

Application terminated.

Error: Cannot convert any in Any variable to extobject at line 2 in function of_setsource of object u_web_browser.

 

Here is the code for of_setsource:


// set the webpage HTML source
this.Object.Document.body.innerHTML = as_source

 

Comment
There are no comments made yet.
Rahul Shravage Accepted Answer Pending Moderation
  1. Wednesday, 21 April 2021 05:11 AM UTC
  2. PowerBuilder
  3. # 2

I have this working as an independent application in PB 12.5 but if I try to use the same code inside another existing application it gives me the error. Since I have to use PB 12.5 - please suggest a work around or how to fix this in PB 12.5. Thank you and appreciate your help.

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.