Print Page | Close Window

Object doesn't support this property

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: ActiveX COM
Forum Description: Topics related to Codejock ActiveX COM products
URL: http://forum.codejock.com/forum_posts.asp?TID=15171
Printed Date: 23 November 2024 at 11:15pm
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: Object doesn't support this property
Posted By: Biox
Subject: Object doesn't support this property
Date Posted: 14 September 2009 at 9:53pm
Tried to find as reason for this but hit a blank, appreciate any help.

I have recompiled an app in v12 instead of v11.2 and get the above error on line 200.  (Object doesn't support this property)

190           Set PopupBar = CommandBars.CreateCommandBar("CXTPRibbonSystemPopupBarPage")
200           Set Control.CommandBar = PopupBar

thanks in advance




Replies:
Posted By: SuperMario
Date Posted: 16 September 2009 at 10:34am
Do you have this?

Dim PopupBar As CommandBar



Posted By: Biox
Date Posted: 16 September 2009 at 7:43pm
Thanks for the reply,  yes I do have that.  


Posted By: SuperMario
Date Posted: 17 September 2009 at 1:34pm
Can you post all the code you use to create the ribbon before the lines you posted?

I am sure this will work with newer version.

Dim PopupBar As CommandBar

So something like:

        Dim PopupBar As CommandBar, ControlPrint As CommandBarPopup

        Set ControlPrint = .Add(xtpControlSplitButtonPopup, ID_FILE_PRINT, "&Print")
        Set PopupBar = CommandBars.CreateCommandBar("CXTPRibbonSystemPopupBarPage")
        Set ControlPrint.CommandBar = PopupBar



Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.04 - http://www.webwizforums.com
Copyright ©2001-2021 Web Wiz Ltd. - https://www.webwiz.net