View Single Post
  #1  
Old September 29th 08, 11:00 AM posted to microsoft.public.outlook.program_addins
[email protected]
external usenet poster
 
Posts: 8
Default My Outlook button appears in Word!

Hi,

I developed a Outlook COM AddIn using VB6 with Office 2000 to 2003
SP3). The user should be able to click a button that is placed on a
custom temporary CommandBar. I save and restore the position and state
of this CommandBar using .Type, .Left, .Top, .Visible, .RowIndex
and .Width properties. If Outlook is used as mail-editor, everything
is really fine. But most people seem to use Word as Editor and the
problem starts here.

Problem 1:
The CommandBar position switches. If I set my CommandBar second to the
menubar, the RowIndex returns me 4 as position (strange). If I set
RowIndex to 4 in a later call, after opening a new inspector, my
CommandBar slips to a far lower position and random left position.

Problem 2:
In some situations, my commandbar appears in Word! If someone klicks,
this obviously triggers some bad errors. I really created only an
Outlook AddIn and I ensure that Inspector.CurrentItem.Class is of type
olMail before. How to prevent the appearance in Word!

Redemption-Objects are available and used.

Can someone please help? My customers complain about this behaviour
and I'm running out of ideas to prevent :-(

Kukulkan
Ads