Wordmail toolbar showing in Word

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

Wordmail toolbar showing in Word
 
Rick Koch




Posts: 172
Joined: 2006-09-05
I added a toolbar for use in my Outlook addin when the Wordmail editor is selected. But we've seen some cases now where this toolbar shows inside Word. Is there a way to control this? -- We only want the button to show in mail.
Posted 08 Dec, 2006 11:05:09 Top
Sergey Grischenko


Add-in Express team


Posts: 7233
Joined: 2004-07-05
Hi Rick.

Please download the following example that should fix the issue:
http://www.add-in-express.com/projects/wordeditorinoutlook.zip

The example is written using the ADX.NET product (not ADX.NET for VSTO).
But you can use the same technique to fix the issue. The main idea is to load two add-ins (Word and Outlook). When the Word document is activated you just need to find the toolbar and hide it.
Please let me know if you face any difficulties with the example.


P.S. Note that we take up your forum requests in the order we receive them.
Besides, it may take us some time to investigate your issue. Please be sure we will let you know as soon as the best possible solution is found.
Posted 08 Dec, 2006 12:32:14 Top
Rick Koch




Posts: 172
Joined: 2006-09-05
Yeah, this is all-new to me, and I'm not getting it. I looked at the code, expecting to see a separate add-in for Word, but that's not what I'm seeing. It's more like there's one add-in that references both Word and Outlook hosts. I don't see how the add-in would have to be configured/built to make it load for both Word and Outlook.
Posted 11 Dec, 2006 11:35:02 Top
Sergey Grischenko


Add-in Express team


Posts: 7233
Joined: 2004-07-05
Hi Rich.

I am afraid it is not possible in VSTO. Now I have a solution for two add-ins only. Moreover the solution only works if your controls are added to a custom command bar and not to the built-in one like Standard or Menu Bar.
I think it is possible to develop one setup for two VSTO based add-ins.
What do you think?
Posted 11 Dec, 2006 18:34:59 Top
Rick Koch




Posts: 172
Joined: 2006-09-05
I'm looking at the example in the zip file, which I do not completely understand. It looks like the example's got one add-in that includes both Outlook and Word code. Someone else has suggested a similar approach.

But you're telling me that method's not possible with VSTO, so I guess in VSTO you want me to break out the Word-specific code into a separate Word addin? If so, can you provide a VSTO sample? I would think there are others who could use this as well. If I did this, would both addins be installed in the same package?

We do put custom buttons on the standard inspector toolbars inside Outlook, but when we detect Wordmail we add a whole custom toolbar instead. Will that work?
Posted 12 Dec, 2006 16:37:06 Top
Sergey Grischenko


Add-in Express team


Posts: 7233
Joined: 2004-07-05
Hi Rick.

Ok. I will develop an example for you.
Posted 13 Dec, 2006 13:10:24 Top
Sergey Grischenko


Add-in Express team


Posts: 7233
Joined: 2004-07-05
Rick, you can download an example here:
http://www.add-in-express.com/projects/wordeditorissue-vsto.zip
Posted 14 Dec, 2006 16:26:05 Top
Rick Koch




Posts: 172
Joined: 2006-09-05
Thanks, Sergey. I know you spent some time on it, and I really appreciate that. I will look at it.
Posted 15 Dec, 2006 10:11:31 Top
Rick Koch




Posts: 172
Joined: 2006-09-05
I'm unable to open the enclosed solution or its included projects. I get a message:

The imported project "C:\Program Files\MSBuild\Microsoft.VisualStudio.OfficeTools2.targets" was not found.
Posted 20 Dec, 2006 16:16:12 Top
Sergey Grischenko


Add-in Express team


Posts: 7233
Joined: 2004-07-05
Rick, do you have VSTO 2005 SE Release installed on your PC?
Posted 21 Dec, 2006 07:21:37 Top