Simple MAPI request when Addin has Ribbon customization

B

Brian Graham

I have a major problem where my VSTO SE add-in is treading on the simple mapi
calls from Word.

If my addin is loaded and the ribbon bar customisation is active the simple
mapi inspector does not dissapear after send. The Ribbon bar is corrupted and
it just sits there. If I take out my ribbion bar change it all works fine.

My xml is:

<customUI xmlns="http://schemas.microsoft.com/office/2006/01/customui"
onLoad="OnLoad" loadImage="GetImage">
<ribbon>
<tabs>
<tab idMso="TabNewMailMessage">
<group id="LDGroup"
label="LD">
<toggleButton id="toggleProfile"
size="large"
label="Profile"
screentip="Show / Hide the profile card."
onAction="OnToggleProfile"
getPressed="GetPressedState"
image="Gavel48" />
</group>
</tab>
</tabs>
</ribbon>
</customUI>

I have tried the timer trick to wrap the inspector, which works, but the
window still does not close after the send. Any inspector created normally
within outlook closes perfectly.

Any ideas?

Cheers
Brian Graham
 
B

Brian Graham

Its OK I have solved the problem.

I had one reference to the inspector in the GetPressed call back method that
was not being released! Duh!

Cheers
Brian
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top