Skip to Content

Toolbar disappear when ole control get focus

I use Crystal Report ole control in my application. The main toolbar disappear when ole control get focus. is there any way i can get rid of this problem?

PB 12.5 with CR 2008

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

3 Answers

  • avatar image
    Former Member
    Sep 07, 2017 at 08:30 PM

    Hi Berka;

    That is actually not an issue with PB as it is with your MENU object design. You'll see in the Menu Painter that Menu Items have a merge property and that is probably set to "exclude" by default. You would need to change that option to allow your menu items to either: merge or over-ride with the OLE object's menu items (and of course it's toolbar).

    HTH

    Regards ... Chris

    Add comment
    10|10000 characters needed characters exceeded

  • Sep 21, 2017 at 07:57 AM

    Hi Chris;

    Thank you so much for reading and answering my question.

    Unfortunately the answer did not work for me. I believe if you test this on your system then this painful error will disappear.

    I gave it a try but i need more detail. Please let me know what to do next.

    Just to get an idea about what the issue is. following images might help others

    After data is retrieved into the ole control, the toolbar just disappear

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Sep 21, 2017 at 01:47 PM

    Hi Berka;

    Looks like you may need to open a support case with SAP on this issue. It could be unique to the way the Crystal Reports plug-in works vs PB. Its hard to tell at this point which piece is at fault.

    Regards ... Chris

    Add comment
    10|10000 characters needed characters exceeded

    • Hi Chris,

      I found no solution for that problem :) damn. Thinking if you can give some idea how i can edit the ole control from Crystal Runtime. I think something like interop project in Visual Studio or ActiveX in VB6 can be used to edit the crystal runtime ole control we add in powerbuilder. Please give me some idea how the required ActiveX control can be edited in either VB or VS. All i want to do is set off the menu update option. I think when Crystal ole control get activated in PB, it try to set the Update option in main menu which i think is not required at all and that is what making problem. if somehow i can tell crystal not to change the Powerbuilder menue then toolbar wont disappear. I need some help to explore it. Need to know where to start what to focus on.

      True Regards,

      Berka