Olle's Weblog...

word PIA + VSTO a no go?

For an application I am trying to open a word template that contains VSTO code using the Primary Interop Assemblies with code like

Document document = word.Documents.Add(ref template, ref wMissing, ref wMissing, ref wMissing);

and for some reason the template events like startup, activate, open arn't called so my VSTO code never executes. I was already surprissed that I couldn't call functions on my template from my own application but if I can't even load the document in a way that the code inside it runs then the options for VSTO become really limited, am I missing something here?

PS:
this is using visual studio 2005 beta 2 and the 2003 PIA's

Comments

Ben said:

Yes, you are correct.  Leave it to Microsoft to develop a whole new software product, but yet miss the whole point altogether.  Without the ability to call VSTO functions from youre app VSTO is nothing but a waste of time.

# July 8, 2009 3:40 PM

Vsto pia | Michaelmiracle said:

Pingback from  Vsto pia | Michaelmiracle

# September 28, 2011 6:02 PM
Leave a Comment

(required) 

(required) 

(optional)

(required)