Global Template Support in VSTO?

P

Peter Bennett

Hi

I'm looking to upgrade my firm's VBA code to fully managed .NET. Currently, the code is actioned through customised buttons in a global template, and this scheme is the way I'd like to keep things

Unfortunately, from what I read, there's a bit of a Catch-22 situation here (please correct me if I'm wrong!)

1) VSTO code can only be triggered by opening or creating documents

2) VSTO can respond to button events, but only if VTSO put buttons there in the first place

In a nutshell, is there any support at all for VSTO/.NET code to be statically accessible within Word 2003 or am I stuck with having to use a COM interface into .NET, which would seem to bypass VSTO altogether

Thanks

Pete
 
C

Cindy M -WordMVP-

Hi =?Utf-8?B?UGV0ZXIgQmVubmV0dA==?=,

The vsnet.vstools.office group would be the better place to get information on
VSTO,but I do know enough about it to be able to answer at this...

VSTO is completely document/template-based. It's not meant to give you a way to
control the Word environment, or to be used as a global Addin. Currently, there is
no way to do that using just .NET - all of Office is still completely COM-based.
You'll have to wait for at least the next office version (maybe even longer)
before the interfaces are available to do what you dream of.
I'm looking to upgrade my firm's VBA code to fully managed .NET. Currently, the
code is actioned through customised buttons in a global template, and this scheme
is the way I'd like to keep things.
Unfortunately, from what I read, there's a bit of a Catch-22 situation here
(please correct me if I'm wrong!).
1) VSTO code can only be triggered by opening or creating documents.

2) VSTO can respond to button events, but only if VTSO put buttons there in the first place.

In a nutshell, is there any support at all for VSTO/.NET code to be statically
accessible within Word 2003 or am I stuck with having to use a COM interface into
.NET, which would seem to bypass VSTO altogether?
Cindy Meister
INTER-Solutions, Switzerland
http://homepage.swissonline.ch/cindymeister (last update Sep 30 2003)
http://www.word.mvps.org

This reply is posted in the Newsgroup; please post any follow question or reply in
the newsgroup and not by e-mail :)
 

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