i am trying to Execute some command Bar Button but doesn't work

Add-in Express™ Support Service
That's what is more important than anything else

i am trying to Execute some command Bar Button but doesn't work
 
Jonathan Dorling




Posts: 31
Joined: 2005-06-14
hi there,

i have a 3rd COM add-in for outlook which i need to access which i can access at the moment but it give me access to this "DocumentsButton() As Office.CommandBarButton" which when i call it like this

        MsgBox(oCM.Control.DocumentsButton.Visible)
        MsgBox(oCM.Control.DocumentsButton.Enabled)



        oCM.Control.DocumentsButton.Visible = True
        oCM.Control.DocumentsButton.Enabled = True
 


it works fine but when i do the execute it does nothing

oCM.Control.DocumentsButton.Execute()


i try it with out any ADD-in Express and it works fink but when i do it with a project with add-in express it doesn't work.

Why is this and how do i fix it?

the COM add-in is for outlook 2003 and is called outlookcrm????

thanks in adv

jonathan
Posted 24 Jun, 2005 08:33:36 Top
Sergey Grischenko


Add-in Express team


Posts: 7187
Joined: 2004-07-05
Hi Jonathan.

Check the OnAction property of the button. If it is empty then you will not get anything.
Posted 24 Jun, 2005 09:38:04 Top
Jonathan Dorling




Posts: 31
Joined: 2005-06-14
i did msgbox(oCM.Control.DocumentsButton.OnAction) and i get a empty msgbox for both project?

but i got it working fine with the same code in a project without ADX but a project with ADX it doesn't work!

Posted 24 Jun, 2005 09:59:32 Top
Sergey Grischenko


Add-in Express team


Posts: 7187
Joined: 2004-07-05
Jonathan, what do you mean "a project without ADX"? Did you develop another add-in using the standard Microsoft wizard in Visual Studio?
Posted 24 Jun, 2005 10:23:18 Top
Jonathan Dorling




Posts: 31
Joined: 2005-06-14
i create a standard Windows Application with Visual Studio.net and it worked fine
Posted 24 Jun, 2005 10:29:12 Top
Sergey Grischenko


Add-in Express team


Posts: 7187
Joined: 2004-07-05
Ok. Send me your add-in project. I will look at the code.
Posted 24 Jun, 2005 10:47:28 Top
Jonathan Dorling




Posts: 31
Joined: 2005-06-14
what is your e-mail? if you need the COM ADD-in i am using it is at www.outlookcrm.com
Posted 24 Jun, 2005 11:14:45 Top
Jonathan Dorling




Posts: 31
Joined: 2005-06-14
what is your e-mail? or is it just sergey you need the COM ADD-in i am using it is at www.outlookcrm.com
Posted 24 Jun, 2005 11:23:06 Top