cancel
Showing results for 
Search instead for 
Did you mean: 

Offsite Activation of an olecontrol results in "Create Package" pop-up window

Former Member
0 Kudos

This problem is easy enough for us to create, and I am quite sure it was not a problem in the possibly distant past. 

First, we execute the following on an empty PB "olecontrol" sitting on a window:

     ole_1.insertFile ("c:\temp\test.jpg")

Then we execute the following which we hope would display the JPG picture:

     ole_1.activate (offsite!)

Instead the following Windows dialog is displayed.  We can't seem to get anywhere meaningful from this dialog. 

The above sequence of events works fine if the file has a well defined host application, such as a MS Office document or PDF.  We would hope a file of type JPG would activate meaningfully because, after all, you can double-click on a JPG to meaningfully view it.  This problem occurs for files of type "txt", and no doubt others. 

Does anyone know anything about this and/or have a fix or suggestion?  This is PB 12.5.2, by the way.

Do we know whose problem this is?  I.E. Could this be theoretically fixed within PowerBuilder? 

Thanks,

Dan.

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi Dan;

   Here is a similar issue a customer had on another PB version with Vista ....

We also had the same problem with PB 10.5 and 11.5 when using Vista. Here is the work around. Activate the OLE object InPlace! instead of OffSite! Surprisingly, this still opens the file in the application it was created in so it can be viewed and/or printed. This appears to only be required for Package OLE objects, but also works for Word and Excel OLE objects.

HTH

Regards ... Chris

Former Member
0 Kudos

Fantastic!  This works!  Thanks Chris! 

I'm surprised "InPlace!" activates off-site for Word and Excel because those applications should support true in-place activation. 

It doesn't really matter now that we have an effective work-around, but I wonder whether the problem lies with PB or elsewhere.  It would be great if Appeon could take a look now that they are in a position to, and open to, doing such things. 

Former Member
0 Kudos

Hi Dan;

  That is great news!  

Image result for snoopy happy dance

From my reading (and finally some more reactivated synapse joints thanks to MORE COFFEE) - I was able to see that there had been issues with the OLE registration string in the OLE Control or OLE -DW in past PB releases, where the OLE Class package name is somehow misinterpreted by the O/S or mis-communicated by PB to MS-Windows. However, changing the OLE Activate to an "InPlace" has seemed in the past - to correct this misunderstanding between PB & the O/S.

Now, whose fault it is is another matter. I'll pass on this weird nuance to the Appeon Engineering team and see if they can look into this as a PB issue vs a MS issue for Appeon PB's 1st release.

In the mean-time, if you have an SAP Support contract, you might want to open up a support ticket on this puppy.

Regards ... Chris

PS: Don't forget to hug your OLE DataWindows! 

Former Member
0 Kudos

Oh my .. that's certainly some large font that I get when pasting into this reply via my smartphone. 

Former Member
0 Kudos

Moving on to implementing a solution - is there a way to tell that an OLE control contains a "Package" other than testing ole_1.classLongName = "Package"?  The issue here is that "Package" will be translated when running Windows in other languages. 

Interesting that ole_1.classShortName is longer than ole_1.classLongName in this case - "Packager Shell Object" versus "Package". 

Thanks for passing this on to Appeon.  We have a SAP Support contract, however it's not clear to me what value there is in opening a case when PB has been handed over to Appeon.

Thanks again.

Dan.

Former Member
0 Kudos

Hi Dan;

AFAIK it would be up to SAP to hand over any fixes to Appeon - which I am sure that they would appreciate hearing about. I would suggest that you contact your SAP Support representative for clarification on this question.

Regards ... Chris

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi Dan;

1) Have you tried this by running your application from PB 12.6?

  => You can download the v12.6 evaluation & its good for 30 days.

       That could answer the "is it fixed" question

2) What version of MS-Windows are you using?

Regards ... Chris

Former Member
0 Kudos

Hi Chris,

1) I haven't tried this on PB 12.6 yet.  I will, but this may not happen immediately.  Do you have any reason to believe PB 12.6 may have fixed the problem?

2) Windows 7.  This problem occurs on customer computers, and I can't vouch for their OS versions.

Thanks,

Dan.

Former Member
0 Kudos

No idea about 12.6 - just curious if you had tried this.

It's a pain when your development PC works great yet the deployed version does not. That gets compounded when it's on remote PC's without you knowing the configuration details.