1. Paul Shue
  2. PowerBuilder
  3. Monday, 15 May 2023 20:46 PM UTC

Recently migrated application from PB 10.2 build 8100 to PB21 Build 1509 (windows 10 enterprise for virtual desktops). We have an ole_control that we acivate with This.activate(InPlace!) in doubleclicked event. In PB10.2 it does activate in place but it PB21 it opens in excel. I have checked the properties of the control and they are the same. How do I make it activate(InPlace!)?

Paul Shue Accepted Answer Pending Moderation
  1. Tuesday, 16 May 2023 12:56 PM UTC
  2. PowerBuilder
  3. # 1

In the PB documentation it states: The server's capabilities determine whether PowerBuilder can activate the object in place - can someone explain what exactly that means?

Comment
  1. John Fauss
  2. Tuesday, 16 May 2023 13:53 PM UTC
At a high level, OLE is implemented "under the covers" via numerous interfaces, most of which are optional. OLE requires an interface that conveys what other interfaces are supported by an OLE server implementation (your OLE control, for example). If the software that acts as an OLE server does not publish or implement the interfaces that are needed for newer versions of PowerBuilder to use in-place activation, PB will be unable to invoke in-place activation for that software. I don't know any of the details in this particular case, but I suspect that as OLE and PB have evolved since the PB version 10.2 timeframe (2005), the requirements for PB to be able to utilize in-place activation may have increased to the point where the old OLE control can no longer be activated in-place.

Admittedly, what I've said here includes some conjecture on my part, but my gut tells me that this may be what is happening.

PB 10.2 was released in 2005. Is it possible for you to check if there is a newer version of the old OLE control, or see if there is a suitable, newer alternative?
  1. Helpful 1
There are no comments made yet.
Miguel Leeuwe Accepted Answer Pending Moderation
  1. Tuesday, 16 May 2023 00:19 AM UTC
  2. PowerBuilder
  3. # 2

Hi,

Maybe it's not very useful to you, but i found this information for pb2022: https://docs.appeon.com/pb2022/application_techniques/OLE_controls_and.html#d0e16004

See if there's anything new there?

regards

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.